#18226F#18226F
#18226F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.132 H 270.3°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).
Color values
| HEX | #18226F |
|---|---|
| RGB | rgb(24, 34, 111) |
| HSL | hsl(233, 64%, 26%) |
| HSV | hsv(233, 78%, 44%) |
| CMYK | cmyk(78.4%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(17.85, 25.31, -45.64) |
| CIE-LCH | lch(17.85, 52.19, 299.01°) |
| OKLab | oklab(30.2% 0.0007 -0.132) |
| OKLCH | oklch(30.2% 0.132 270.3) |
| XYZ | xyz(3.8170, 2.4855, 15.3144) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Royal
#0C1793
ΔE00 6.70
Darkblue (survey)
#030764
ΔE00 6.77
Dark Royal Blue
#02066F
ΔE00 6.87
Marine
#042E60
ΔE00 7.28
Deep Blue
#040273
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18226F #6F6518
analogous
#184E6F #18226F #3A186F
triadic
#18226F #6F1822 #226F18
tetradic
#18226F #6F184E #6F6518 #186F3A
square
#18226F #6F184E #6F6518 #186F3A
split-complementary
#18226F #6F3A18 #4E6F18
monochromatic
#050819 #0D133D #18226F #2331A1 #2F42D2
Accessibility & contrast
On white
14.03
#18226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#18226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18226F
14.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18226F | 1.00 | 14.03 | 1.50 | 14.03 |
| #FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #18226f; /* rgb */ color: rgb(24, 34, 111); /* oklch */ color: oklch(30.2% 0.132 270.3);
Tailwind
colors: {
custom: {
50: '#645d99',
500: '#18226f',
950: '#000000',
},
}SCSS
$custom: #18226f; $custom-light: #645d99; $custom-dark: #000000;
JSON
{
"hex": "#18226f",
"rgb": {
"r": 24,
"g": 34,
"b": 111
},
"hsl": {
"h": 233.103,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.30201,
"c": 0.13202,
"h": 270.3
},
"luminance": 0.02486
}Semantic roles & 50–950 ramp
primary
#18226F
secondary
#A5993E
accent
#D440E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E