#28219F#28219F
#28219F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.191 H 273.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).
Color values
| HEX | #28219F |
|---|---|
| RGB | rgb(40, 33, 159) |
| HSL | hsl(243, 66%, 38%) |
| HSV | hsv(243, 79%, 62%) |
| CMYK | cmyk(74.8%, 79.2%, 0%, 37.6%) |
| CIE-LAB | lab(23.81, 44.53, -65.94) |
| CIE-LCH | lch(23.81, 79.57, 304.03°) |
| OKLab | oklab(36.26% 0.0123 -0.1908) |
| OKLCH | oklch(36.26% 0.191 273.7) |
| XYZ | xyz(7.6749, 4.0412, 33.1697) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Indigo Blue
#3A18B1
ΔE00 3.53
Cobalt Blue
#030AA7
ΔE00 3.96
Royal Blue (survey)
#0504AA
ΔE00 4.45
Ultramarine
#2000B1
ΔE00 4.59
True Blue
#010FCC
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28219F #989F21
analogous
#21599F #28219F #67219F
triadic
#28219F #9F2821 #219F28
tetradic
#28219F #9F2159 #989F21 #219F67
square
#28219F #9F2159 #989F21 #219F67
split-complementary
#28219F #9F6721 #599F21
monochromatic
#0E0C3A #1B166C #28219F #352CD2 #645DDD
Accessibility & contrast
On white
11.61
#28219F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#28219F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28219F
11.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28219F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28219F | 1.00 | 11.61 | 1.81 | 11.61 |
| #FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #28219f; /* rgb */ color: rgb(40, 33, 159); /* oklch */ color: oklch(36.3% 0.191 273.7);
Tailwind
colors: {
custom: {
50: '#765fbd',
500: '#28219f',
950: '#000000',
},
}SCSS
$custom: #28219f; $custom-light: #765fbd; $custom-dark: #000000;
JSON
{
"hex": "#28219f",
"rgb": {
"r": 40,
"g": 33,
"b": 159
},
"hsl": {
"h": 243.333,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.36257,
"c": 0.19116,
"h": 273.7
},
"luminance": 0.04042
}Semantic roles & 50–950 ramp
primary
#28219F
secondary
#BCC25A
accent
#E93FDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981