#231F87#231F87
#231F87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.165 H 274.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #231F87 |
|---|---|
| RGB | rgb(35, 31, 135) |
| HSL | hsl(242, 63%, 33%) |
| HSV | hsv(242, 77%, 53%) |
| CMYK | cmyk(74.1%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(20.39, 37.20, -56.76) |
| CIE-LCH | lch(20.39, 67.86, 303.24°) |
| OKLab | oklab(32.97% 0.0121 -0.1642) |
| OKLCH | oklch(32.97% 0.165 274.2) |
| XYZ | xyz(5.5548, 3.0860, 23.2199) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.76
Midnight Blue
#191970
ΔE00 3.81
Cobalt Blue
#030AA7
ΔE00 5.56
Darkblue
#00008B
ΔE00 5.56
Indigo (survey)
#380282
ΔE00 5.74
Navy
#000080
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#231F87 #83871F
analogous
#1F4F87 #231F87 #571F87
triadic
#231F87 #87231F #1F8723
tetradic
#231F87 #871F4F #83871F #1F8757
square
#231F87 #871F4F #83871F #1F8757
split-complementary
#231F87 #87571F #4F871F
monochromatic
#090823 #161455 #231F87 #302AB9 #504BD6
Accessibility & contrast
On white
12.98
#231F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#231F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #231F87
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##231F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##231F87 | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #231f87; /* rgb */ color: rgb(35, 31, 135); /* oklch */ color: oklch(33.0% 0.165 274.2);
Tailwind
colors: {
custom: {
50: '#6f5cab',
500: '#231f87',
950: '#000000',
},
}SCSS
$custom: #231f87; $custom-light: #6f5cab; $custom-dark: #000000;
JSON
{
"hex": "#231f87",
"rgb": {
"r": 35,
"g": 31,
"b": 135
},
"hsl": {
"h": 242.308,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.32966,
"c": 0.16461,
"h": 274.2
},
"luminance": 0.03087
}Semantic roles & 50–950 ramp
primary
#231F87
secondary
#B4B84A
accent
#E642DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F