#231F7D#231F7D
#231F7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.152 H 275.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #231F7D |
|---|---|
| RGB | rgb(35, 31, 125) |
| HSL | hsl(243, 60%, 31%) |
| HSV | hsv(243, 75%, 49%) |
| CMYK | cmyk(72%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(19.30, 33.74, -52.23) |
| CIE-LCH | lch(19.30, 62.18, 302.86°) |
| OKLab | oklab(31.87% 0.0142 -0.151) |
| OKLCH | oklch(31.87% 0.152 275.4) |
| XYZ | xyz(4.8836, 2.8175, 19.6845) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.47
Royal
#0C1793
ΔE00 4.02
Dark Royal Blue
#02066F
ΔE00 5.76
Indigo (survey)
#380282
ΔE00 6.05
Navy
#000080
ΔE00 6.12
Deep Blue
#040273
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#231F7D #797D1F
analogous
#1F4A7D #231F7D #521F7D
triadic
#231F7D #7D231F #1F7D23
tetradic
#231F7D #7D1F4A #797D1F #1F7D52
square
#231F7D #7D1F4A #797D1F #1F7D52
split-complementary
#231F7D #7D521F #4A7D1F
monochromatic
#08071B #15134C #231F7D #312BAE #4B45D1
Accessibility & contrast
On white
13.43
#231F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#231F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #231F7D
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##231F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##231F7D | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #231f7d; /* rgb */ color: rgb(35, 31, 125); /* oklch */ color: oklch(31.9% 0.152 275.4);
Tailwind
colors: {
custom: {
50: '#6c5ca4',
500: '#231f7d',
950: '#000000',
},
}SCSS
$custom: #231f7d; $custom-light: #6c5ca4; $custom-dark: #000000;
JSON
{
"hex": "#231f7d",
"rgb": {
"r": 35,
"g": 31,
"b": 125
},
"hsl": {
"h": 242.553,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.31869,
"c": 0.15164,
"h": 275.4
},
"luminance": 0.02818
}Semantic roles & 50–950 ramp
primary
#231F7D
secondary
#ACB048
accent
#E344DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F