#28168C#28168C
#28168C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.178 H 277.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #28168C |
|---|---|
| RGB | rgb(40, 22, 140) |
| HSL | hsl(249, 73%, 32%) |
| HSV | hsv(249, 84%, 55%) |
| CMYK | cmyk(71.4%, 84.3%, 0%, 45.1%) |
| CIE-LAB | lab(19.71, 43.98, -60.99) |
| CIE-LCH | lch(19.71, 75.19, 305.79°) |
| OKLab | oklab(32.76% 0.022 -0.1762) |
| OKLCH | oklch(32.76% 0.178 277.1) |
| XYZ | xyz(5.8941, 2.9178, 25.0584) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.20
Indigo (survey)
#380282
ΔE00 3.83
Darkblue
#00008B
ΔE00 3.95
Cobalt Blue
#030AA7
ΔE00 4.08
Royal Blue (survey)
#0504AA
ΔE00 4.52
Navy
#000080
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28168C #7A8C16
analogous
#163F8C #28168C #63168C
triadic
#28168C #8C2816 #168C28
tetradic
#28168C #8C163F #7A8C16 #168C63
square
#28168C #8C163F #7A8C16 #168C63
split-complementary
#28168C #8C6316 #3F8C16
monochromatic
#0A0522 #190E57 #28168C #371EC1 #553CE0
Accessibility & contrast
On white
13.26
#28168C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#28168C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28168C
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28168C | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #28168c; /* rgb */ color: rgb(40, 22, 140); /* oklch */ color: oklch(32.8% 0.178 277.1);
Tailwind
colors: {
custom: {
50: '#7358af',
500: '#28168c',
950: '#000000',
},
}SCSS
$custom: #28168c; $custom-light: #7358af; $custom-dark: #000000;
JSON
{
"hex": "#28168c",
"rgb": {
"r": 40,
"g": 22,
"b": 140
},
"hsl": {
"h": 249.153,
"s": 72.84,
"l": 31.765
},
"oklch": {
"l": 0.32762,
"c": 0.17759,
"h": 277.1
},
"luminance": 0.02918
}Semantic roles & 50–950 ramp
primary
#28168C
secondary
#ACC03E
accent
#F038D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090311
muted
#7B7880