#28286F#28286F
#28286F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.4% C 0.120 H 277.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #28286F |
|---|---|
| RGB | rgb(40, 40, 111) |
| HSL | hsl(240, 47%, 30%) |
| HSV | hsv(240, 64%, 44%) |
| CMYK | cmyk(64%, 64%, 0%, 56.5%) |
| CIE-LAB | lab(20.50, 23.57, -41.27) |
| CIE-LCH | lch(20.50, 47.52, 299.73°) |
| OKLab | oklab(32.43% 0.0154 -0.1187) |
| OKLCH | oklch(32.43% 0.12 277.4) |
| XYZ | xyz(4.5022, 3.1161, 15.4001) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.52
Marine
#042E60
ΔE00 7.50
Darkslateblue
#483D8B
ΔE00 7.69
Royal
#0C1793
ΔE00 7.91
Dark Indigo
#1F0954
ΔE00 8.50
Navy Blue
#1B2A4A
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28286F #6F6F28
analogous
#284C6F #28286F #4C286F
triadic
#28286F #6F2828 #286F28
tetradic
#28286F #6F284C #6F6F28 #286F4C
square
#28286F #6F284C #6F6F28 #286F4C
split-complementary
#28286F #6F4C28 #4C6F28
monochromatic
#080816 #181842 #28286F #38389C #5151C0
Accessibility & contrast
On white
12.94
#28286F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#28286F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28286F
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28286F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28286F | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #28286f; /* rgb */ color: rgb(40, 40, 111); /* oklch */ color: oklch(32.4% 0.120 277.4);
Tailwind
colors: {
custom: {
50: '#6b6299',
500: '#28286f',
950: '#000000',
},
}SCSS
$custom: #28286f; $custom-light: #6b6299; $custom-dark: #000000;
JSON
{
"hex": "#28286f",
"rgb": {
"r": 40,
"g": 40,
"b": 111
},
"hsl": {
"h": 240,
"s": 47.02,
"l": 29.608
},
"oklch": {
"l": 0.32427,
"c": 0.1197,
"h": 277.4
},
"luminance": 0.03116
}Semantic roles & 50–950 ramp
primary
#28286F
secondary
#A1A151
accent
#D751D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E