#231F7B#231F7B
#231F7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.149 H 275.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #231F7B |
|---|---|
| RGB | rgb(35, 31, 123) |
| HSL | hsl(243, 60%, 30%) |
| HSV | hsv(243, 75%, 48%) |
| CMYK | cmyk(71.5%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(19.09, 33.03, -51.31) |
| CIE-LCH | lch(19.09, 61.02, 302.78°) |
| OKLab | oklab(31.65% 0.0146 -0.1483) |
| OKLCH | oklch(31.65% 0.149 275.6) |
| XYZ | xyz(4.7571, 2.7669, 19.0184) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.25
Royal
#0C1793
ΔE00 4.31
Dark Royal Blue
#02066F
ΔE00 5.71
Deep Blue
#040273
ΔE00 6.13
Indigo (survey)
#380282
ΔE00 6.17
Navy
#000080
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#231F7B #777B1F
analogous
#1F497B #231F7B #511F7B
triadic
#231F7B #7B231F #1F7B23
tetradic
#231F7B #7B1F49 #777B1F #1F7B51
square
#231F7B #7B1F49 #777B1F #1F7B51
split-complementary
#231F7B #7B511F #497B1F
monochromatic
#070619 #15134A #231F7B #312BAC #4A44D0
Accessibility & contrast
On white
13.52
#231F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#231F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #231F7B
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##231F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##231F7B | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #231f7b; /* rgb */ color: rgb(35, 31, 123); /* oklch */ color: oklch(31.7% 0.149 275.6);
Tailwind
colors: {
custom: {
50: '#6c5ca2',
500: '#231f7b',
950: '#000000',
},
}SCSS
$custom: #231f7b; $custom-light: #6c5ca2; $custom-dark: #000000;
JSON
{
"hex": "#231f7b",
"rgb": {
"r": 35,
"g": 31,
"b": 123
},
"hsl": {
"h": 242.609,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.31654,
"c": 0.14899,
"h": 275.6
},
"luminance": 0.02767
}Semantic roles & 50–950 ramp
primary
#231F7B
secondary
#AAAE48
accent
#E345DC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F