#28188A#28188A
#28188A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.174 H 277.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #28188A |
|---|---|
| RGB | rgb(40, 24, 138) |
| HSL | hsl(248, 70%, 32%) |
| HSV | hsv(248, 83%, 54%) |
| CMYK | cmyk(71%, 82.6%, 0%, 45.9%) |
| CIE-LAB | lab(19.80, 42.41, -59.60) |
| CIE-LCH | lch(19.80, 73.15, 305.44°) |
| OKLab | oklab(32.75% 0.0217 -0.1722) |
| OKLCH | oklch(32.75% 0.174 277.2) |
| XYZ | xyz(5.7877, 2.9388, 24.3021) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.30
Indigo (survey)
#380282
ΔE00 4.05
Darkblue
#00008B
ΔE00 4.26
Cobalt Blue
#030AA7
ΔE00 4.47
Midnight Blue
#191970
ΔE00 4.52
Navy
#000080
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28188A #7A8A18
analogous
#18418A #28188A #61188A
triadic
#28188A #8A2818 #188A28
tetradic
#28188A #8A1841 #7A8A18 #188A61
square
#28188A #8A1841 #7A8A18 #188A61
split-complementary
#28188A #8A6118 #418A18
monochromatic
#0A0622 #190F56 #28188A #3721BE #553FDE
Accessibility & contrast
On white
13.23
#28188A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#28188A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28188A
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28188A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28188A | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #28188a; /* rgb */ color: rgb(40, 24, 138); /* oklch */ color: oklch(32.8% 0.174 277.2);
Tailwind
colors: {
custom: {
50: '#7259ad',
500: '#28188a',
950: '#000000',
},
}SCSS
$custom: #28188a; $custom-light: #7259ad; $custom-dark: #000000;
JSON
{
"hex": "#28188a",
"rgb": {
"r": 40,
"g": 24,
"b": 138
},
"hsl": {
"h": 248.421,
"s": 70.37,
"l": 31.765
},
"oklch": {
"l": 0.32752,
"c": 0.17357,
"h": 277.2
},
"luminance": 0.02939
}Semantic roles & 50–950 ramp
primary
#28188A
secondary
#ACBD40
accent
#ED3BD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F