#12148F#12148F
#12148F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.188 H 268.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #12148F |
|---|---|
| RGB | rgb(18, 20, 143) |
| HSL | hsl(239, 78%, 32%) |
| HSV | hsv(239, 87%, 56%) |
| CMYK | cmyk(87.4%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(18.42, 44.53, -65.06) |
| CIE-LCH | lch(18.42, 78.84, 304.39°) |
| OKLab | oklab(31.61% -0.0059 -0.1884) |
| OKLCH | oklch(31.61% 0.188 268.2) |
| XYZ | xyz(5.4558, 2.6114, 26.1978) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.84
Darkblue
#00008B
ΔE00 3.06
Cobalt Blue
#030AA7
ΔE00 3.33
Royal Blue (survey)
#0504AA
ΔE00 3.87
Navy
#000080
ΔE00 3.91
Midnight Blue
#191970
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12148F #8F8D12
analogous
#12538F #12148F #4F128F
triadic
#12148F #8F1214 #148F12
tetradic
#12148F #8F1253 #8F8D12 #128F4F
square
#12148F #8F1253 #8F8D12 #128F4F
split-complementary
#12148F #8F4F12 #538F12
monochromatic
#040522 #0B0C59 #12148F #191CC5 #3639E6
Accessibility & contrast
On white
13.79
#12148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#12148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12148F
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12148F | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #12148f; /* rgb */ color: rgb(18, 20, 143); /* oklch */ color: oklch(31.6% 0.188 268.2);
Tailwind
colors: {
custom: {
50: '#6d56b1',
500: '#12148f',
950: '#000000',
},
}SCSS
$custom: #12148f; $custom-light: #6d56b1; $custom-dark: #000000;
JSON
{
"hex": "#12148f",
"rgb": {
"r": 18,
"g": 20,
"b": 143
},
"hsl": {
"h": 239.04,
"s": 77.64,
"l": 31.569
},
"oklch": {
"l": 0.31614,
"c": 0.18845,
"h": 268.2
},
"luminance": 0.02612
}Semantic roles & 50–950 ramp
primary
#12148F
secondary
#C3C13A
accent
#F134F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880