#28197E#28197E
#28197E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.158 H 279.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).
Color values
| HEX | #28197E |
|---|---|
| RGB | rgb(40, 25, 126) |
| HSL | hsl(249, 67%, 30%) |
| HSV | hsv(249, 80%, 49%) |
| CMYK | cmyk(68.3%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(18.59, 38.08, -54.01) |
| CIE-LCH | lch(18.59, 66.09, 305.18°) |
| OKLab | oklab(31.51% 0.0247 -0.156) |
| OKLCH | oklch(31.51% 0.158 279) |
| XYZ | xyz(4.9874, 2.6523, 19.9837) |
| Luminance | 0.0265 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Royal
#0C1793
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 4.25
Dark Royal Blue
#02066F
ΔE00 4.92
Navy
#000080
ΔE00 4.92
Darkblue
#00008B
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28197E #6F7E19
analogous
#193D7E #28197E #5B197E
triadic
#28197E #7E2819 #197E28
tetradic
#28197E #7E193D #6F7E19 #197E5B
square
#28197E #7E193D #6F7E19 #197E5B
split-complementary
#28197E #7E5B19 #3D7E19
monochromatic
#08051A #180F4B #28197E #3823B1 #513AD8
Accessibility & contrast
On white
13.72
#28197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#28197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28197E
13.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28197E | 1.00 | 13.72 | 1.53 | 13.72 |
| #FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #28197e; /* rgb */ color: rgb(40, 25, 126); /* oklch */ color: oklch(31.5% 0.158 279.0);
Tailwind
colors: {
custom: {
50: '#6f59a4',
500: '#28197e',
950: '#000000',
},
}SCSS
$custom: #28197e; $custom-light: #6f59a4; $custom-dark: #000000;
JSON
{
"hex": "#28197e",
"rgb": {
"r": 40,
"g": 25,
"b": 126
},
"hsl": {
"h": 248.911,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.31508,
"c": 0.15792,
"h": 279
},
"luminance": 0.02653
}Semantic roles & 50–950 ramp
primary
#28197E
secondary
#A1B241
accent
#EA3ED0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F