#181281#181281
#181281 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.172 H 271.4°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).
Color values
| HEX | #181281 |
|---|---|
| RGB | rgb(24, 18, 129) |
| HSL | hsl(243, 76%, 29%) |
| HSV | hsv(243, 86%, 51%) |
| CMYK | cmyk(81.4%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(16.56, 41.26, -59.33) |
| CIE-LCH | lch(16.56, 72.27, 304.82°) |
| OKLab | oklab(29.89% 0.0042 -0.1717) |
| OKLCH | oklch(29.89% 0.172 271.4) |
| XYZ | xyz(4.5541, 2.2113, 20.9514) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.76
Navy
#000080
ΔE00 3.03
Darkblue
#00008B
ΔE00 3.06
Midnight Blue
#191970
ΔE00 3.38
Deep Blue
#040273
ΔE00 3.55
Dark Royal Blue
#02066F
ΔE00 3.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181281 #7B8112
analogous
#124481 #181281 #501281
triadic
#181281 #811812 #128118
tetradic
#181281 #811244 #7B8112 #128150
square
#181281 #811244 #7B8112 #128150
split-complementary
#181281 #815012 #448112
monochromatic
#05041B #0E0B4B #181281 #2219B7 #362CE2
Accessibility & contrast
On white
14.56
#181281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#181281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181281
14.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181281 | 1.00 | 14.56 | 1.44 | 14.56 |
| #FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E84
Deuteranopia (green-blind)
#00237F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #181281; /* rgb */ color: rgb(24, 18, 129); /* oklch */ color: oklch(29.9% 0.172 271.4);
Tailwind
colors: {
custom: {
50: '#6b54a7',
500: '#181281',
950: '#000000',
},
}SCSS
$custom: #181281; $custom-light: #6b54a7; $custom-dark: #000000;
JSON
{
"hex": "#181281",
"rgb": {
"r": 24,
"g": 18,
"b": 129
},
"hsl": {
"h": 243.243,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.29892,
"c": 0.17171,
"h": 271.4
},
"luminance": 0.02212
}Semantic roles & 50–950 ramp
primary
#181281
secondary
#B0B738
accent
#F236E8
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F