#331F4C
Approximate name: Midnight Blue
Technical formats
Color-space values for scientific work and cross-device comparison.
Practical formats
Ready to paste into CSS, Tailwind, iOS, Android, Flutter, and more.
Color analysis
Objective metrics: luminance, hue, saturation, temperature, and contrast.
Nearest name
MidnightBlue
Relative luminance
0.022
Hue H
267°
Saturation S
42%
Lightness L
21%
Value V
30%
Temperature
Cool
Brightness
Dark
Chroma
Muted
Hue family
Purple
Contrast on white: 14.57:1 (AA body Pass / AAA Pass)
Contrast on black: 1.44:1 (AA body Fail / AAA Fail)
Open full contrast tool →Color blindness simulator
Approximate appearance under common color-vision deficiencies (matrix simulation).
Normal vision
#331f4c
Protanopia
#2a2a41
Deuteranopia
#2c2d3e
Tritanopia
#323937
Achromatopsia
#2a2a2a
Protanomaly
#2f2646
Deuteranomaly
#2f2446
Tritanomaly
#322b44
Creative pairings
Hue-wheel harmonies and 10% shade/tint steps — not AI-generated copy.