#31237F#31237F
#31237F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.147 H 282.1°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).
Color values
| HEX | #31237F |
|---|---|
| RGB | rgb(49, 35, 127) |
| HSL | hsl(249, 57%, 32%) |
| HSV | hsv(249, 72%, 50%) |
| CMYK | cmyk(61.4%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(21.53, 33.91, -49.79) |
| CIE-LCH | lch(21.53, 60.23, 304.26°) |
| OKLab | oklab(33.82% 0.0308 -0.1434) |
| OKLCH | oklch(33.82% 0.147 282.1) |
| XYZ | xyz(5.6972, 3.3870, 20.4281) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.03
Royal
#0C1793
ΔE00 5.07
Indigo (survey)
#380282
ΔE00 5.93
Indigo
#4B0082
ΔE00 7.21
Dark Royal Blue
#02066F
ΔE00 7.24
Darkblue
#00008B
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31237F #717F23
analogous
#23437F #31237F #5F237F
triadic
#31237F #7F3123 #237F31
tetradic
#31237F #7F2343 #717F23 #237F5F
square
#31237F #7F2343 #717F23 #237F5F
split-complementary
#31237F #7F5F23 #437F23
monochromatic
#0C091F #1E164F #31237F #4430AF #624ECE
Accessibility & contrast
On white
12.52
#31237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#31237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31237F
12.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31237F | 1.00 | 12.52 | 1.68 | 12.52 |
| #FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #31237f; /* rgb */ color: rgb(49, 35, 127); /* oklch */ color: oklch(33.8% 0.147 282.1);
Tailwind
colors: {
custom: {
50: '#735fa5',
500: '#31237f',
950: '#000000',
},
}SCSS
$custom: #31237f; $custom-light: #735fa5; $custom-dark: #000000;
JSON
{
"hex": "#31237f",
"rgb": {
"r": 49,
"g": 35,
"b": 127
},
"hsl": {
"h": 249.13,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.33819,
"c": 0.14669,
"h": 282.1
},
"luminance": 0.03387
}Semantic roles & 50–950 ramp
primary
#31237F
secondary
#A2B14C
accent
#E048C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F