#181788#181788
#181788 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.176 H 270.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #181788 |
|---|---|
| RGB | rgb(24, 23, 136) |
| HSL | hsl(241, 71%, 31%) |
| HSV | hsv(241, 83%, 53%) |
| CMYK | cmyk(82.4%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(18.29, 41.08, -60.87) |
| CIE-LCH | lch(18.29, 73.43, 304.02°) |
| OKLab | oklab(31.35% 0.0013 -0.1762) |
| OKLCH | oklch(31.35% 0.176 270.4) |
| XYZ | xyz(5.1255, 2.5840, 23.5164) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.61
Darkblue
#00008B
ΔE00 3.66
Midnight Blue
#191970
ΔE00 3.88
Navy
#000080
ΔE00 4.10
Cobalt Blue
#030AA7
ΔE00 4.47
Deep Blue
#040273
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181788 #878817
analogous
#174E88 #181788 #501788
triadic
#181788 #881817 #178818
tetradic
#181788 #88174E #878817 #178850
square
#181788 #88174E #878817 #178850
split-complementary
#181788 #885017 #4E8817
monochromatic
#06051F #0F0E54 #181788 #2120BC #3D3BDE
Accessibility & contrast
On white
13.84
#181788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#181788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181788
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181788 | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328B
Deuteranopia (green-blind)
#002786
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #181788; /* rgb */ color: rgb(24, 23, 136); /* oklch */ color: oklch(31.4% 0.176 270.4);
Tailwind
colors: {
custom: {
50: '#6c57ac',
500: '#181788',
950: '#000000',
},
}SCSS
$custom: #181788; $custom-light: #6c57ac; $custom-dark: #000000;
JSON
{
"hex": "#181788",
"rgb": {
"r": 24,
"g": 23,
"b": 136
},
"hsl": {
"h": 240.531,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.31351,
"c": 0.17623,
"h": 270.4
},
"luminance": 0.02585
}Semantic roles & 50–950 ramp
primary
#181788
secondary
#BBBC3F
accent
#EE3AEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F