#28237C#28237C
#28237C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.144 H 277.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #28237C |
|---|---|
| RGB | rgb(40, 35, 124) |
| HSL | hsl(243, 56%, 31%) |
| HSV | hsv(243, 72%, 49%) |
| CMYK | cmyk(67.7%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(20.47, 31.54, -49.65) |
| CIE-LCH | lch(20.47, 58.82, 302.43°) |
| OKLab | oklab(32.78% 0.0184 -0.1433) |
| OKLCH | oklch(32.78% 0.144 277.3) |
| XYZ | xyz(5.1130, 3.1080, 19.3953) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Royal
#0C1793
ΔE00 4.93
Indigo (survey)
#380282
ΔE00 6.75
Dark Royal Blue
#02066F
ΔE00 6.80
Deep Blue
#040273
ΔE00 7.22
Navy
#000080
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28237C #777C23
analogous
#234A7C #28237C #54237C
triadic
#28237C #7C2823 #237C28
tetradic
#28237C #7C234A #777C23 #237C54
square
#28237C #7C234A #777C23 #237C54
split-complementary
#28237C #7C5423 #4A7C23
monochromatic
#09081D #19164C #28237C #3730AC #544DCD
Accessibility & contrast
On white
12.95
#28237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#28237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28237C
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28237C | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #28237c; /* rgb */ color: rgb(40, 35, 124); /* oklch */ color: oklch(32.8% 0.144 277.3);
Tailwind
colors: {
custom: {
50: '#6e5fa3',
500: '#28237c',
950: '#000000',
},
}SCSS
$custom: #28237c; $custom-light: #6e5fa3; $custom-dark: #000000;
JSON
{
"hex": "#28237c",
"rgb": {
"r": 40,
"g": 35,
"b": 124
},
"hsl": {
"h": 243.371,
"s": 55.975,
"l": 31.176
},
"oklch": {
"l": 0.32776,
"c": 0.14449,
"h": 277.3
},
"luminance": 0.03108
}Semantic roles & 50–950 ramp
primary
#28237C
secondary
#A9AF4C
accent
#DF49D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F