#18148C#18148C
#18148C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.183 H 270.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #18148C |
|---|---|
| RGB | rgb(24, 20, 140) |
| HSL | hsl(242, 75%, 31%) |
| HSV | hsv(242, 86%, 55%) |
| CMYK | cmyk(82.9%, 85.7%, 0%, 45.1%) |
| CIE-LAB | lab(18.31, 43.84, -63.35) |
| CIE-LCH | lch(18.31, 77.04, 304.69°) |
| OKLab | oklab(31.51% 0.0011 -0.1833) |
| OKLCH | oklch(31.51% 0.183 270.3) |
| XYZ | xyz(5.3589, 2.5873, 25.0228) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.27
Darkblue
#00008B
ΔE00 3.07
Cobalt Blue
#030AA7
ΔE00 3.72
Navy
#000080
ΔE00 3.78
Royal Blue (survey)
#0504AA
ΔE00 4.22
Midnight Blue
#191970
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18148C #888C14
analogous
#144C8C #18148C #54148C
triadic
#18148C #8C1814 #148C18
tetradic
#18148C #8C144C #888C14 #148C54
square
#18148C #8C144C #888C14 #148C54
split-complementary
#18148C #8C5414 #4C8C14
monochromatic
#060521 #0F0C56 #18148C #211CC2 #3E38E3
Accessibility & contrast
On white
13.84
#18148C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#18148C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18148C
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18148C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18148C | 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)
#00338F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18148c; /* rgb */ color: rgb(24, 20, 140); /* oklch */ color: oklch(31.5% 0.183 270.3);
Tailwind
colors: {
custom: {
50: '#6e56af',
500: '#18148c',
950: '#000000',
},
}SCSS
$custom: #18148c; $custom-light: #6e56af; $custom-dark: #000000;
JSON
{
"hex": "#18148c",
"rgb": {
"r": 24,
"g": 20,
"b": 140
},
"hsl": {
"h": 242,
"s": 75,
"l": 31.373
},
"oklch": {
"l": 0.31508,
"c": 0.18334,
"h": 270.3
},
"luminance": 0.02588
}Semantic roles & 50–950 ramp
primary
#18148C
secondary
#BCC03C
accent
#F236EB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880