#18168C#18168C
#18168C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.182 H 270.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #18168C |
|---|---|
| RGB | rgb(24, 22, 140) |
| HSL | hsl(241, 73%, 32%) |
| HSV | hsv(241, 84%, 55%) |
| CMYK | cmyk(82.9%, 84.3%, 0%, 45.1%) |
| CIE-LAB | lab(18.63, 42.89, -62.82) |
| CIE-LCH | lch(18.63, 76.06, 304.33°) |
| OKLab | oklab(31.73% 0.0007 -0.1818) |
| OKLCH | oklch(31.73% 0.182 270.2) |
| XYZ | xyz(5.3956, 2.6608, 25.0351) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.12
Darkblue
#00008B
ΔE00 3.43
Cobalt Blue
#030AA7
ΔE00 3.85
Navy
#000080
ΔE00 4.10
Royal Blue (survey)
#0504AA
ΔE00 4.38
Midnight Blue
#191970
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18168C #8A8C16
analogous
#164F8C #18168C #53168C
triadic
#18168C #8C1816 #168C18
tetradic
#18168C #8C164F #8A8C16 #168C53
square
#18168C #8C164F #8A8C16 #168C53
split-complementary
#18168C #8C5316 #4F8C16
monochromatic
#060522 #0F0E57 #18168C #211EC1 #3F3CE0
Accessibility & contrast
On white
13.71
#18168C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#18168C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18168C
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18168C | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18168c; /* rgb */ color: rgb(24, 22, 140); /* oklch */ color: oklch(31.7% 0.182 270.2);
Tailwind
colors: {
custom: {
50: '#6e57af',
500: '#18168c',
950: '#000000',
},
}SCSS
$custom: #18168c; $custom-light: #6e57af; $custom-dark: #000000;
JSON
{
"hex": "#18168c",
"rgb": {
"r": 24,
"g": 22,
"b": 140
},
"hsl": {
"h": 241.017,
"s": 72.84,
"l": 31.765
},
"oklch": {
"l": 0.31731,
"c": 0.18184,
"h": 270.2
},
"luminance": 0.02661
}Semantic roles & 50–950 ramp
primary
#18168C
secondary
#BDC03E
accent
#F038EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880