#18218C#18218C
#18218C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.172 H 269.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #18218C |
|---|---|
| RGB | rgb(24, 33, 140) |
| HSL | hsl(235, 71%, 32%) |
| HSV | hsv(235, 83%, 55%) |
| CMYK | cmyk(82.9%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(20.73, 36.85, -59.34) |
| CIE-LCH | lch(20.73, 69.85, 301.84°) |
| OKLab | oklab(33.21% -0.0024 -0.1719) |
| OKLCH | oklch(33.21% 0.172 269.2) |
| XYZ | xyz(5.6525, 3.1747, 25.1207) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.54
Midnight Blue
#191970
ΔE00 4.51
Cobalt Blue
#030AA7
ΔE00 5.35
Darkblue
#00008B
ΔE00 5.90
Royal Blue (survey)
#0504AA
ΔE00 5.97
Navy
#000080
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18218C #8C8318
analogous
#185B8C #18218C #49188C
triadic
#18218C #8C1821 #218C18
tetradic
#18218C #8C185B #8C8318 #188C49
square
#18218C #8C185B #8C8318 #188C49
split-complementary
#18218C #8C4918 #5B8C18
monochromatic
#060824 #0F1558 #18218C #212DC0 #404CDE
Accessibility & contrast
On white
12.84
#18218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#18218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18218C
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18218C | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #18218c; /* rgb */ color: rgb(24, 33, 140); /* oklch */ color: oklch(33.2% 0.172 269.2);
Tailwind
colors: {
custom: {
50: '#6c5daf',
500: '#18218c',
950: '#000000',
},
}SCSS
$custom: #18218c; $custom-light: #6c5daf; $custom-dark: #000000;
JSON
{
"hex": "#18218c",
"rgb": {
"r": 24,
"g": 33,
"b": 140
},
"hsl": {
"h": 235.345,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.33205,
"c": 0.17194,
"h": 269.2
},
"luminance": 0.03175
}Semantic roles & 50–950 ramp
primary
#18218C
secondary
#BFB541
accent
#E03AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F