#2F1E7A#2F1E7A
#2F1E7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.146 H 283.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1E7A |
|---|---|
| RGB | rgb(47, 30, 122) |
| HSL | hsl(251, 61%, 30%) |
| HSV | hsv(251, 75%, 48%) |
| CMYK | cmyk(61.5%, 75.4%, 0%, 52.2%) |
| CIE-LAB | lab(19.79, 34.90, -49.47) |
| CIE-LCH | lch(19.79, 60.54, 305.21°) |
| OKLab | oklab(32.38% 0.033 -0.1425) |
| OKLCH | oklch(32.38% 0.146 283) |
| XYZ | xyz(5.1483, 2.9377, 18.7043) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.19
Royal
#0C1793
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.04
Dark Royal Blue
#02066F
ΔE00 6.10
Deep Blue
#040273
ΔE00 6.38
Navy
#000080
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1E7A #697A1E
analogous
#1E3B7A #2F1E7A #5D1E7A
triadic
#2F1E7A #7A2F1E #1E7A2F
tetradic
#2F1E7A #7A1E3B #697A1E #1E7A5D
square
#2F1E7A #7A1E3B #697A1E #1E7A5D
split-complementary
#2F1E7A #7A5D1E #3B7A1E
monochromatic
#090619 #1C1249 #2F1E7A #422AAB #5C42D0
Accessibility & contrast
On white
13.23
#2F1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1E7A
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1E7A | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1e7a; /* rgb */ color: rgb(47, 30, 122); /* oklch */ color: oklch(32.4% 0.146 283.0);
Tailwind
colors: {
custom: {
50: '#715ca1',
500: '#2f1e7a',
950: '#000000',
},
}SCSS
$custom: #2f1e7a; $custom-light: #715ca1; $custom-dark: #000000;
JSON
{
"hex": "#2f1e7a",
"rgb": {
"r": 47,
"g": 30,
"b": 122
},
"hsl": {
"h": 251.087,
"s": 60.526,
"l": 29.804
},
"oklch": {
"l": 0.32384,
"c": 0.1463,
"h": 283
},
"luminance": 0.02938
}Semantic roles & 50–950 ramp
primary
#2F1E7A
secondary
#9AAE46
accent
#E444C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F