#12158F#12158F
#12158F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.188 H 268.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).
Color values
| HEX | #12158F |
|---|---|
| RGB | rgb(18, 21, 143) |
| HSL | hsl(239, 78%, 32%) |
| HSV | hsv(239, 87%, 56%) |
| CMYK | cmyk(87.4%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(18.57, 44.07, -64.80) |
| CIE-LCH | lch(18.57, 78.36, 304.22°) |
| OKLab | oklab(31.72% -0.006 -0.1876) |
| OKLCH | oklch(31.72% 0.188 268.2) |
| XYZ | xyz(5.4738, 2.6474, 26.2038) |
| Luminance | 0.0265 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.71
Darkblue
#00008B
ΔE00 3.23
Cobalt Blue
#030AA7
ΔE00 3.40
Royal Blue (survey)
#0504AA
ΔE00 3.95
Navy
#000080
ΔE00 4.06
Midnight Blue
#191970
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12158F #8F8C12
analogous
#12548F #12158F #4E128F
triadic
#12158F #8F1215 #158F12
tetradic
#12158F #8F1254 #8F8C12 #128F4E
square
#12158F #8F1254 #8F8C12 #128F4E
split-complementary
#12158F #8F4E12 #548F12
monochromatic
#040522 #0B0D59 #12158F #191DC5 #363AE6
Accessibility & contrast
On white
13.73
#12158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#12158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12158F
13.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12158F | 1.00 | 13.73 | 1.53 | 13.73 |
| #FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #12158f; /* rgb */ color: rgb(18, 21, 143); /* oklch */ color: oklch(31.7% 0.188 268.2);
Tailwind
colors: {
custom: {
50: '#6d56b1',
500: '#12158f',
950: '#000000',
},
}SCSS
$custom: #12158f; $custom-light: #6d56b1; $custom-dark: #000000;
JSON
{
"hex": "#12158f",
"rgb": {
"r": 18,
"g": 21,
"b": 143
},
"hsl": {
"h": 238.56,
"s": 77.64,
"l": 31.569
},
"oklch": {
"l": 0.31722,
"c": 0.18772,
"h": 268.2
},
"luminance": 0.02648
}Semantic roles & 50–950 ramp
primary
#12158F
secondary
#C3C03A
accent
#F034F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880