#28197B#28197B
#28197B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.154 H 279.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).
Color values
| HEX | #28197B |
|---|---|
| RGB | rgb(40, 25, 123) |
| HSL | hsl(249, 66%, 29%) |
| HSV | hsv(249, 80%, 48%) |
| CMYK | cmyk(67.5%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(18.26, 37.10, -52.65) |
| CIE-LCH | lch(18.26, 64.41, 305.17°) |
| OKLab | oklab(31.17% 0.0255 -0.152) |
| OKLCH | oklch(31.17% 0.154 279.5) |
| XYZ | xyz(4.7967, 2.5761, 18.9795) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.59
Royal
#0C1793
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.40
Dark Royal Blue
#02066F
ΔE00 4.78
Deep Blue
#040273
ΔE00 5.01
Navy
#000080
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28197B #6C7B19
analogous
#193B7B #28197B #59197B
triadic
#28197B #7B2819 #197B28
tetradic
#28197B #7B193B #6C7B19 #197B59
square
#28197B #7B193B #6C7B19 #197B59
split-complementary
#28197B #7B5919 #3B7B19
monochromatic
#080519 #170F48 #28197B #3923AE #5038D7
Accessibility & contrast
On white
13.86
#28197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#28197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28197B
13.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28197B | 1.00 | 13.86 | 1.52 | 13.86 |
| #FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #28197b; /* rgb */ color: rgb(40, 25, 123); /* oklch */ color: oklch(31.2% 0.154 279.5);
Tailwind
colors: {
custom: {
50: '#6f58a2',
500: '#28197b',
950: '#000000',
},
}SCSS
$custom: #28197b; $custom-light: #6f58a2; $custom-dark: #000000;
JSON
{
"hex": "#28197b",
"rgb": {
"r": 40,
"g": 25,
"b": 123
},
"hsl": {
"h": 249.184,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.31174,
"c": 0.15415,
"h": 279.5
},
"luminance": 0.02576
}Semantic roles & 50–950 ramp
primary
#28197B
secondary
#9EAF40
accent
#E93FCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F