#18138E#18138E
#18138E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.186 H 270.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #18138E |
|---|---|
| RGB | rgb(24, 19, 142) |
| HSL | hsl(242, 76%, 32%) |
| HSV | hsv(242, 87%, 56%) |
| CMYK | cmyk(83.1%, 86.6%, 0%, 44.3%) |
| CIE-LAB | lab(18.42, 44.92, -64.42) |
| CIE-LCH | lch(18.42, 78.54, 304.89°) |
| OKLab | oklab(31.66% 0.0008 -0.1864) |
| OKLCH | oklch(31.66% 0.186 270.2) |
| XYZ | xyz(5.4904, 2.6123, 25.8008) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.20
Darkblue
#00008B
ΔE00 2.94
Cobalt Blue
#030AA7
ΔE00 3.40
Navy
#000080
ΔE00 3.78
Royal Blue (survey)
#0504AA
ΔE00 3.90
Indigo (survey)
#380282
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18138E #898E13
analogous
#134C8E #18138E #56138E
triadic
#18138E #8E1813 #138E18
tetradic
#18138E #8E134C #898E13 #138E56
square
#18138E #8E134C #898E13 #138E56
split-complementary
#18138E #8E5613 #4C8E13
monochromatic
#060522 #0F0C58 #18138E #211AC4 #3E37E4
Accessibility & contrast
On white
13.79
#18138E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#18138E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18138E
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18138E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18138E | 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)
#003391
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18138e; /* rgb */ color: rgb(24, 19, 142); /* oklch */ color: oklch(31.7% 0.186 270.2);
Tailwind
colors: {
custom: {
50: '#6e56b0',
500: '#18138e',
950: '#000000',
},
}SCSS
$custom: #18138e; $custom-light: #6e56b0; $custom-dark: #000000;
JSON
{
"hex": "#18138e",
"rgb": {
"r": 24,
"g": 19,
"b": 142
},
"hsl": {
"h": 242.439,
"s": 76.398,
"l": 31.569
},
"oklch": {
"l": 0.31658,
"c": 0.18641,
"h": 270.2
},
"luminance": 0.02613
}Semantic roles & 50–950 ramp
primary
#18138E
secondary
#BDC23B
accent
#F335EB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880