#28187F#28187F
#28187F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.160 H 279.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #28187F |
|---|---|
| RGB | rgb(40, 24, 127) |
| HSL | hsl(249, 68%, 30%) |
| HSV | hsv(249, 81%, 50%) |
| CMYK | cmyk(68.5%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(18.52, 38.93, -54.77) |
| CIE-LCH | lch(18.52, 67.19, 305.40°) |
| OKLab | oklab(31.49% 0.025 -0.1582) |
| OKLCH | oklch(31.49% 0.16 279) |
| XYZ | xyz(5.0312, 2.6363, 20.3183) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.12
Royal
#0C1793
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.70
Navy
#000080
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28187F #6F7F18
analogous
#183C7F #28187F #5B187F
triadic
#28187F #7F2818 #187F28
tetradic
#28187F #7F183C #6F7F18 #187F5B
square
#28187F #7F183C #6F7F18 #187F5B
split-complementary
#28187F #7F5B18 #3C7F18
monochromatic
#08051A #180E4C #28187F #3822B2 #5138D9
Accessibility & contrast
On white
13.75
#28187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#28187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28187F
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28187F | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #28187f; /* rgb */ color: rgb(40, 24, 127); /* oklch */ color: oklch(31.5% 0.160 279.0);
Tailwind
colors: {
custom: {
50: '#7058a5',
500: '#28187f',
950: '#000000',
},
}SCSS
$custom: #28187f; $custom-light: #7058a5; $custom-dark: #000000;
JSON
{
"hex": "#28187f",
"rgb": {
"r": 40,
"g": 24,
"b": 127
},
"hsl": {
"h": 249.32,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.31492,
"c": 0.16012,
"h": 279
},
"luminance": 0.02637
}Semantic roles & 50–950 ramp
primary
#28187F
secondary
#A1B33F
accent
#EB3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F