#18107E#18107E
#18107E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.170 H 271.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).
Color values
| HEX | #18107E |
|---|---|
| RGB | rgb(24, 16, 126) |
| HSL | hsl(244, 77%, 28%) |
| HSV | hsv(244, 87%, 49%) |
| CMYK | cmyk(81%, 87.3%, 0%, 50.6%) |
| CIE-LAB | lab(15.85, 41.23, -58.59) |
| CIE-LCH | lch(15.85, 71.64, 305.13°) |
| OKLab | oklab(29.29% 0.0055 -0.1695) |
| OKLCH | oklch(29.29% 0.17 271.8) |
| XYZ | xyz(4.3266, 2.0707, 19.9063) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.72
Darkblue
#00008B
ΔE00 3.01
Deep Blue
#040273
ΔE00 3.04
Dark Royal Blue
#02066F
ΔE00 3.06
Midnight Blue
#191970
ΔE00 3.28
Royal
#0C1793
ΔE00 3.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18107E #767E10
analogous
#103F7E #18107E #4F107E
triadic
#18107E #7E1810 #107E18
tetradic
#18107E #7E103F #767E10 #107E4F
square
#18107E #7E103F #767E10 #107E4F
split-complementary
#18107E #7E4F10 #3F7E10
monochromatic
#05031B #0E0948 #18107E #2217B4 #3325E3
Accessibility & contrast
On white
14.85
#18107E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#18107E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18107E
14.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18107E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18107E | 1.00 | 14.85 | 1.41 | 14.85 |
| #FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #18107e; /* rgb */ color: rgb(24, 16, 126); /* oklch */ color: oklch(29.3% 0.170 271.8);
Tailwind
colors: {
custom: {
50: '#6a53a5',
500: '#18107e',
950: '#000000',
},
}SCSS
$custom: #18107e; $custom-light: #6a53a5; $custom-dark: #000000;
JSON
{
"hex": "#18107e",
"rgb": {
"r": 24,
"g": 16,
"b": 126
},
"hsl": {
"h": 244.364,
"s": 77.465,
"l": 27.843
},
"oklch": {
"l": 0.29294,
"c": 0.16958,
"h": 271.8
},
"luminance": 0.02071
}Semantic roles & 50–950 ramp
primary
#18107E
secondary
#ABB436
accent
#F434E6
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F