#18227C#18227C
#18227C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.150 H 269.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #18227C |
|---|---|
| RGB | rgb(24, 34, 124) |
| HSL | hsl(234, 68%, 29%) |
| HSV | hsv(234, 81%, 49%) |
| CMYK | cmyk(80.6%, 72.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.20, 30.32, -51.79) |
| CIE-LCH | lch(19.20, 60.01, 300.35°) |
| OKLab | oklab(31.58% -0.0006 -0.15) |
| OKLCH | oklch(31.58% 0.15 269.8) |
| XYZ | xyz(4.5856, 2.7930, 19.3623) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Royal
#0C1793
ΔE00 4.64
Dark Royal Blue
#02066F
ΔE00 6.45
Darkblue (survey)
#030764
ΔE00 6.93
Deep Blue
#040273
ΔE00 6.98
Navy
#000080
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18227C #7C7218
analogous
#18547C #18227C #40187C
triadic
#18227C #7C1822 #227C18
tetradic
#18227C #7C1854 #7C7218 #187C40
square
#18227C #7C1854 #7C7218 #187C40
split-complementary
#18227C #7C4018 #547C18
monochromatic
#05071A #0E1449 #18227C #2230AF #3646D8
Accessibility & contrast
On white
13.47
#18227C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#18227C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18227C
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18227C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18227C | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18227c; /* rgb */ color: rgb(24, 34, 124); /* oklch */ color: oklch(31.6% 0.150 269.8);
Tailwind
colors: {
custom: {
50: '#685da3',
500: '#18227c',
950: '#000000',
},
}SCSS
$custom: #18227c; $custom-light: #685da3; $custom-dark: #000000;
JSON
{
"hex": "#18227c",
"rgb": {
"r": 24,
"g": 34,
"b": 124
},
"hsl": {
"h": 234,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.31581,
"c": 0.14996,
"h": 269.8
},
"luminance": 0.02793
}Semantic roles & 50–950 ramp
primary
#18227C
secondary
#B1A53F
accent
#D93DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F