#231787#231787
#231787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.172 H 275.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #231787 |
|---|---|
| RGB | rgb(35, 23, 135) |
| HSL | hsl(246, 71%, 31%) |
| HSV | hsv(246, 83%, 53%) |
| CMYK | cmyk(74.1%, 83%, 0%, 47.1%) |
| CIE-LAB | lab(18.88, 41.53, -59.24) |
| CIE-LCH | lch(18.88, 72.35, 305.03°) |
| OKLab | oklab(31.91% 0.0158 -0.1713) |
| OKLCH | oklch(31.91% 0.172 275.3) |
| XYZ | xyz(5.3713, 2.7189, 23.1587) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.19
Darkblue
#00008B
ΔE00 3.92
Midnight Blue
#191970
ΔE00 3.96
Indigo (survey)
#380282
ΔE00 4.20
Navy
#000080
ΔE00 4.33
Cobalt Blue
#030AA7
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#231787 #7B8717
analogous
#174387 #231787 #5B1787
triadic
#231787 #872317 #178723
tetradic
#231787 #871743 #7B8717 #17875B
square
#231787 #871743 #7B8717 #17875B
split-complementary
#231787 #875B17 #438717
monochromatic
#08051E #150E53 #231787 #3120BB #4C3BDE
Accessibility & contrast
On white
13.60
#231787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#231787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #231787
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##231787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##231787 | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #231787; /* rgb */ color: rgb(35, 23, 135); /* oklch */ color: oklch(31.9% 0.172 275.3);
Tailwind
colors: {
custom: {
50: '#7058ab',
500: '#231787',
950: '#000000',
},
}SCSS
$custom: #231787; $custom-light: #7058ab; $custom-dark: #000000;
JSON
{
"hex": "#231787",
"rgb": {
"r": 35,
"g": 23,
"b": 135
},
"hsl": {
"h": 246.429,
"s": 70.886,
"l": 30.98
},
"oklch": {
"l": 0.31912,
"c": 0.17201,
"h": 275.3
},
"luminance": 0.02719
}Semantic roles & 50–950 ramp
primary
#231787
secondary
#AEBB3F
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F