#181781#181781
#181781 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.168 H 271.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).
Color values
| HEX | #181781 |
|---|---|
| RGB | rgb(24, 23, 129) |
| HSL | hsl(241, 70%, 30%) |
| HSV | hsv(241, 82%, 51%) |
| CMYK | cmyk(81.4%, 82.2%, 0%, 49.4%) |
| CIE-LAB | lab(17.42, 38.74, -57.90) |
| CIE-LCH | lch(17.42, 69.66, 303.79°) |
| OKLab | oklab(30.49% 0.0029 -0.1676) |
| OKLCH | oklch(30.49% 0.168 271) |
| XYZ | xyz(4.6442, 2.3914, 20.9814) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Midnight Blue
#191970
ΔE00 2.86
Darkblue
#00008B
ΔE00 3.98
Navy
#000080
ΔE00 4.01
Dark Royal Blue
#02066F
ΔE00 4.21
Deep Blue
#040273
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181781 #808117
analogous
#174B81 #181781 #4D1781
triadic
#181781 #811817 #178118
tetradic
#181781 #81174B #808117 #17814D
square
#181781 #81174B #808117 #17814D
split-complementary
#181781 #814D17 #4B8117
monochromatic
#05051A #0E0E4D #181781 #2220B5 #3937DB
Accessibility & contrast
On white
14.20
#181781 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#181781 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181781
14.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181781 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181781 | 1.00 | 14.20 | 1.48 | 14.20 |
| #FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #181781; /* rgb */ color: rgb(24, 23, 129); /* oklch */ color: oklch(30.5% 0.168 271.0);
Tailwind
colors: {
custom: {
50: '#6a57a7',
500: '#181781',
950: '#000000',
},
}SCSS
$custom: #181781; $custom-light: #6a57a7; $custom-dark: #000000;
JSON
{
"hex": "#181781",
"rgb": {
"r": 24,
"g": 23,
"b": 129
},
"hsl": {
"h": 240.566,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.3049,
"c": 0.16764,
"h": 271
},
"luminance": 0.02392
}Semantic roles & 50–950 ramp
primary
#181781
secondary
#B4B53E
accent
#ED3BEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F