#18128F#18128F
#18128F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.188 H 270.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).
Color values
| HEX | #18128F |
|---|---|
| RGB | rgb(24, 18, 143) |
| HSL | hsl(243, 78%, 32%) |
| HSV | hsv(243, 87%, 56%) |
| CMYK | cmyk(83.2%, 87.4%, 0%, 43.9%) |
| CIE-LAB | lab(18.41, 45.67, -65.06) |
| CIE-LCH | lch(18.41, 79.49, 305.06°) |
| OKLab | oklab(31.69% 0.0007 -0.1882) |
| OKLCH | oklch(31.69% 0.188 270.2) |
| XYZ | xyz(5.5492, 2.6093, 26.1925) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.27
Darkblue
#00008B
ΔE00 2.81
Cobalt Blue
#030AA7
ΔE00 3.22
Royal Blue (survey)
#0504AA
ΔE00 3.71
Navy
#000080
ΔE00 3.73
Indigo (survey)
#380282
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18128F #898F12
analogous
#124B8F #18128F #57128F
triadic
#18128F #8F1812 #128F18
tetradic
#18128F #8F124B #898F12 #128F57
square
#18128F #8F124B #898F12 #128F57
split-complementary
#18128F #8F5712 #4B8F12
monochromatic
#060422 #0F0B59 #18128F #2119C5 #3E36E6
Accessibility & contrast
On white
13.80
#18128F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#18128F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18128F
13.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18128F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18128F | 1.00 | 13.80 | 1.52 | 13.80 |
| #FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18128f; /* rgb */ color: rgb(24, 18, 143); /* oklch */ color: oklch(31.7% 0.188 270.2);
Tailwind
colors: {
custom: {
50: '#6f55b1',
500: '#18128f',
950: '#000000',
},
}SCSS
$custom: #18128f; $custom-light: #6f55b1; $custom-dark: #000000;
JSON
{
"hex": "#18128f",
"rgb": {
"r": 24,
"g": 18,
"b": 143
},
"hsl": {
"h": 242.88,
"s": 77.64,
"l": 31.569
},
"oklch": {
"l": 0.31687,
"c": 0.18825,
"h": 270.2
},
"luminance": 0.0261
}Semantic roles & 50–950 ramp
primary
#18128F
secondary
#BDC33A
accent
#F434EB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880