#28197F#28197F
#28197F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.159 H 278.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #28197F |
|---|---|
| RGB | rgb(40, 25, 127) |
| HSL | hsl(249, 67%, 30%) |
| HSV | hsv(249, 80%, 50%) |
| CMYK | cmyk(68.5%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.71, 38.40, -54.46) |
| CIE-LCH | lch(18.71, 66.64, 305.19°) |
| OKLab | oklab(31.62% 0.0244 -0.1573) |
| OKLCH | oklch(31.62% 0.159 278.8) |
| XYZ | xyz(5.0522, 2.6783, 20.3253) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Royal
#0C1793
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 4.22
Darkblue
#00008B
ΔE00 4.87
Navy
#000080
ΔE00 4.90
Dark Royal Blue
#02066F
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28197F #707F19
analogous
#193D7F #28197F #5B197F
triadic
#28197F #7F2819 #197F28
tetradic
#28197F #7F193D #707F19 #197F5B
square
#28197F #7F193D #707F19 #197F5B
split-complementary
#28197F #7F5B19 #3D7F19
monochromatic
#08051A #180F4C #28197F #3823B2 #513AD8
Accessibility & contrast
On white
13.67
#28197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#28197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28197F
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28197F | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #28197f; /* rgb */ color: rgb(40, 25, 127); /* oklch */ color: oklch(31.6% 0.159 278.8);
Tailwind
colors: {
custom: {
50: '#7059a5',
500: '#28197f',
950: '#000000',
},
}SCSS
$custom: #28197f; $custom-light: #7059a5; $custom-dark: #000000;
JSON
{
"hex": "#28197f",
"rgb": {
"r": 40,
"g": 25,
"b": 127
},
"hsl": {
"h": 248.824,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.3162,
"c": 0.15917,
"h": 278.8
},
"luminance": 0.02679
}Semantic roles & 50–950 ramp
primary
#28197F
secondary
#A2B341
accent
#EA3ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F