#2A0F4D#2A0F4D
#2A0F4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.106 H 298.1°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F4D |
|---|---|
| RGB | rgb(42, 15, 77) |
| HSL | hsl(266, 67%, 18%) |
| HSV | hsv(266, 81%, 30%) |
| CMYK | cmyk(45.5%, 80.5%, 0%, 69.8%) |
| CIE-LAB | lab(11.75, 28.37, -32.85) |
| CIE-LCH | lch(11.75, 43.40, 310.81°) |
| OKLab | oklab(25.2% 0.0502 -0.0939) |
| OKLCH | oklch(25.2% 0.106 298.1) |
| XYZ | xyz(2.4649, 1.3697, 7.1542) |
| Luminance | 0.0137 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.40
Midnight Purple
#280137
ΔE00 5.35
Dark Violet
#34013F
ΔE00 5.58
Dark Purple
#35063E
ΔE00 5.78
Deep Purple
#36013F
ΔE00 5.98
Night Blue
#040348
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F4D #324D0F
analogous
#0F134D #2A0F4D #490F4D
triadic
#2A0F4D #4D2A0F #0F4D2A
tetradic
#2A0F4D #4D0F13 #324D0F #0F4D49
square
#2A0F4D #4D0F13 #324D0F #0F4D49
split-complementary
#2A0F4D #4D490F #134D0F
monochromatic
#0E051A #0E051A #2A0F4D #461980 #6223B3
Accessibility & contrast
On white
16.48
#2A0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2A0F4D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F4D
16.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F4D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F4D | 1.00 | 16.48 | 1.27 | 16.48 |
| #FFFFFF | 16.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#211F2D
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #2a0f4d; /* rgb */ color: rgb(42, 15, 77); /* oklch */ color: oklch(25.2% 0.106 298.1);
Tailwind
colors: {
custom: {
50: '#68507f',
500: '#2a0f4d',
950: '#000000',
},
}SCSS
$custom: #2a0f4d; $custom-light: #68507f; $custom-dark: #000000;
JSON
{
"hex": "#2a0f4d",
"rgb": {
"r": 42,
"g": 15,
"b": 77
},
"hsl": {
"h": 266.129,
"s": 67.391,
"l": 18.039
},
"oklch": {
"l": 0.25196,
"c": 0.10649,
"h": 298.1
},
"luminance": 0.0137
}Semantic roles & 50–950 ramp
primary
#2A0F4D
secondary
#618731
accent
#EA3E9F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C