#281281#281281
#281281 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.168 H 279.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).
Color values
| HEX | #281281 |
|---|---|
| RGB | rgb(40, 18, 129) |
| HSL | hsl(252, 76%, 29%) |
| HSV | hsv(252, 86%, 51%) |
| CMYK | cmyk(69%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(17.77, 42.42, -57.28) |
| CIE-LCH | lch(17.77, 71.27, 306.53°) |
| OKLab | oklab(31.04% 0.0273 -0.1654) |
| OKLCH | oklch(31.04% 0.168 279.4) |
| XYZ | xyz(5.0526, 2.4683, 20.9748) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.03
Royal
#0C1793
ΔE00 3.42
Darkblue
#00008B
ΔE00 3.72
Navy
#000080
ΔE00 3.80
Midnight Blue
#191970
ΔE00 3.91
Deep Blue
#040273
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281281 #6B8112
analogous
#123481 #281281 #601281
triadic
#281281 #812812 #128128
tetradic
#281281 #811234 #6B8112 #128160
square
#281281 #811234 #6B8112 #128160
split-complementary
#281281 #816012 #348112
monochromatic
#08041B #170B4B #281281 #3919B7 #502CE2
Accessibility & contrast
On white
14.06
#281281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#281281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281281
14.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281281 | 1.00 | 14.06 | 1.49 | 14.06 |
| #FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #281281; /* rgb */ color: rgb(40, 18, 129); /* oklch */ color: oklch(31.0% 0.168 279.4);
Tailwind
colors: {
custom: {
50: '#7155a7',
500: '#281281',
950: '#000000',
},
}SCSS
$custom: #281281; $custom-light: #7155a7; $custom-dark: #000000;
JSON
{
"hex": "#281281",
"rgb": {
"r": 40,
"g": 18,
"b": 129
},
"hsl": {
"h": 251.892,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.31043,
"c": 0.1676,
"h": 279.4
},
"luminance": 0.02469
}Semantic roles & 50–950 ramp
primary
#281281
secondary
#9DB738
accent
#F236CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F