#281581#281581
#281581 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.165 H 279.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).
Color values
| HEX | #281581 |
|---|---|
| RGB | rgb(40, 21, 129) |
| HSL | hsl(251, 72%, 29%) |
| HSV | hsv(251, 84%, 51%) |
| CMYK | cmyk(69%, 83.7%, 0%, 49.4%) |
| CIE-LAB | lab(18.24, 41.05, -56.50) |
| CIE-LCH | lch(18.24, 69.84, 306.00°) |
| OKLab | oklab(31.36% 0.0259 -0.1632) |
| OKLCH | oklch(31.36% 0.165 279) |
| XYZ | xyz(5.1044, 2.5720, 20.9921) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 3.46
Midnight Blue
#191970
ΔE00 3.61
Darkblue
#00008B
ΔE00 4.10
Navy
#000080
ΔE00 4.20
Deep Blue
#040273
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281581 #6E8115
analogous
#153881 #281581 #5E1581
triadic
#281581 #812815 #158128
tetradic
#281581 #811538 #6E8115 #15815E
square
#281581 #811538 #6E8115 #15815E
split-complementary
#281581 #815E15 #388115
monochromatic
#08041A #180C4C #281581 #381EB6 #5133DE
Accessibility & contrast
On white
13.87
#281581 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#281581 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281581
13.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281581 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281581 | 1.00 | 13.87 | 1.51 | 13.87 |
| #FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #281581; /* rgb */ color: rgb(40, 21, 129); /* oklch */ color: oklch(31.4% 0.165 279.0);
Tailwind
colors: {
custom: {
50: '#7057a7',
500: '#281581',
950: '#000000',
},
}SCSS
$custom: #281581; $custom-light: #7057a7; $custom-dark: #000000;
JSON
{
"hex": "#281581",
"rgb": {
"r": 40,
"g": 21,
"b": 129
},
"hsl": {
"h": 250.556,
"s": 72,
"l": 29.412
},
"oklch": {
"l": 0.31364,
"c": 0.16521,
"h": 279
},
"luminance": 0.02572
}Semantic roles & 50–950 ramp
primary
#281581
secondary
#A0B63C
accent
#EF39CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F