#18127C#18127C
#18127C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.166 H 271.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).
Color values
| HEX | #18127C |
|---|---|
| RGB | rgb(24, 18, 124) |
| HSL | hsl(243, 75%, 28%) |
| HSV | hsv(243, 85%, 49%) |
| CMYK | cmyk(80.6%, 85.5%, 0%, 51.4%) |
| CIE-LAB | lab(15.91, 39.65, -57.22) |
| CIE-LCH | lch(15.91, 69.61, 304.72°) |
| OKLab | oklab(29.26% 0.0055 -0.1656) |
| OKLCH | oklch(29.26% 0.166 271.9) |
| XYZ | xyz(4.2299, 2.0816, 19.2437) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.77
Dark Royal Blue
#02066F
ΔE00 3.07
Navy
#000080
ΔE00 3.12
Deep Blue
#040273
ΔE00 3.21
Royal
#0C1793
ΔE00 3.44
Darkblue
#00008B
ΔE00 3.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18127C #767C12
analogous
#12417C #18127C #4D127C
triadic
#18127C #7C1812 #127C18
tetradic
#18127C #7C1241 #767C12 #127C4D
square
#18127C #7C1241 #767C12 #127C4D
split-complementary
#18127C #7C4D12 #417C12
monochromatic
#05041B #0E0A47 #18127C #221AB1 #3329E0
Accessibility & contrast
On white
14.83
#18127C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#18127C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18127C
14.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18127C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18127C | 1.00 | 14.83 | 1.42 | 14.83 |
| #FFFFFF | 14.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00227A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18127c; /* rgb */ color: rgb(24, 18, 124); /* oklch */ color: oklch(29.3% 0.166 271.9);
Tailwind
colors: {
custom: {
50: '#6a53a3',
500: '#18127c',
950: '#000000',
},
}SCSS
$custom: #18127c; $custom-light: #6a53a3; $custom-dark: #000000;
JSON
{
"hex": "#18127c",
"rgb": {
"r": 24,
"g": 18,
"b": 124
},
"hsl": {
"h": 243.396,
"s": 74.648,
"l": 27.843
},
"oklch": {
"l": 0.29258,
"c": 0.16566,
"h": 271.9
},
"luminance": 0.02082
}Semantic roles & 50–950 ramp
primary
#18127C
secondary
#ABB238
accent
#F137E7
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F