#2F1F7D#2F1F7D
#2F1F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 282.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F7D |
|---|---|
| RGB | rgb(47, 31, 125) |
| HSL | hsl(250, 60%, 31%) |
| HSV | hsv(250, 75%, 49%) |
| CMYK | cmyk(62.4%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.30, 35.30, -50.54) |
| CIE-LCH | lch(20.30, 61.65, 304.93°) |
| OKLab | oklab(32.84% 0.0315 -0.1457) |
| OKLCH | oklch(32.84% 0.149 282.2) |
| XYZ | xyz(5.3628, 3.0646, 19.7070) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.42
Royal
#0C1793
ΔE00 4.70
Indigo (survey)
#380282
ΔE00 5.12
Dark Royal Blue
#02066F
ΔE00 6.32
Darkblue
#00008B
ΔE00 6.51
Navy
#000080
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F7D #6D7D1F
analogous
#1F3E7D #2F1F7D #5E1F7D
triadic
#2F1F7D #7D2F1F #1F7D2F
tetradic
#2F1F7D #7D1F3E #6D7D1F #1F7D5E
square
#2F1F7D #7D1F3E #6D7D1F #1F7D5E
split-complementary
#2F1F7D #7D5E1F #3E7D1F
monochromatic
#0A071B #1D134C #2F1F7D #412BAE #5D45D1
Accessibility & contrast
On white
13.02
#2F1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2F1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F7D
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F7D | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1f7d; /* rgb */ color: rgb(47, 31, 125); /* oklch */ color: oklch(32.8% 0.149 282.2);
Tailwind
colors: {
custom: {
50: '#725da4',
500: '#2f1f7d',
950: '#000000',
},
}SCSS
$custom: #2f1f7d; $custom-light: #725da4; $custom-dark: #000000;
JSON
{
"hex": "#2f1f7d",
"rgb": {
"r": 47,
"g": 31,
"b": 125
},
"hsl": {
"h": 250.213,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.32836,
"c": 0.14905,
"h": 282.2
},
"luminance": 0.03065
}Semantic roles & 50–950 ramp
primary
#2F1F7D
secondary
#9EB048
accent
#E344C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F