#2F1A7C#2F1A7C
#2F1A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 283.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A7C |
|---|---|
| RGB | rgb(47, 26, 124) |
| HSL | hsl(253, 65%, 29%) |
| HSV | hsv(253, 79%, 49%) |
| CMYK | cmyk(62.1%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(19.22, 37.76, -51.69) |
| CIE-LCH | lch(19.22, 64.01, 306.15°) |
| OKLab | oklab(32.04% 0.0355 -0.149) |
| OKLCH | oklch(32.04% 0.153 283.4) |
| XYZ | xyz(5.1787, 2.7980, 19.3321) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Indigo (survey)
#380282
ΔE00 4.01
Royal
#0C1793
ΔE00 4.54
Dark Royal Blue
#02066F
ΔE00 5.53
Navy
#000080
ΔE00 5.63
Deep Blue
#040273
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A7C #677C1A
analogous
#1A367C #2F1A7C #601A7C
triadic
#2F1A7C #7C2F1A #1A7C2F
tetradic
#2F1A7C #7C1A36 #677C1A #1A7C60
square
#2F1A7C #7C1A36 #677C1A #1A7C60
split-complementary
#2F1A7C #7C601A #367C1A
monochromatic
#0A0519 #1C0F49 #2F1A7C #4225AF #5C3BD6
Accessibility & contrast
On white
13.46
#2F1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F1A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A7C
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A7C | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1a7c; /* rgb */ color: rgb(47, 26, 124); /* oklch */ color: oklch(32.0% 0.153 283.4);
Tailwind
colors: {
custom: {
50: '#725aa3',
500: '#2f1a7c',
950: '#000000',
},
}SCSS
$custom: #2f1a7c; $custom-light: #725aa3; $custom-dark: #000000;
JSON
{
"hex": "#2f1a7c",
"rgb": {
"r": 47,
"g": 26,
"b": 124
},
"hsl": {
"h": 252.857,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.3204,
"c": 0.15317,
"h": 283.4
},
"luminance": 0.02798
}Semantic roles & 50–950 ramp
primary
#2F1A7C
secondary
#98B042
accent
#E840C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F