#2F1B7B#2F1B7B
#2F1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.151 H 283.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B7B |
|---|---|
| RGB | rgb(47, 27, 123) |
| HSL | hsl(253, 64%, 29%) |
| HSV | hsv(253, 78%, 48%) |
| CMYK | cmyk(61.8%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(19.30, 36.91, -50.92) |
| CIE-LCH | lch(19.30, 62.89, 305.94°) |
| OKLab | oklab(32.07% 0.035 -0.1467) |
| OKLCH | oklch(32.07% 0.151 283.4) |
| XYZ | xyz(5.1383, 2.8179, 19.0082) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 4.28
Royal
#0C1793
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 5.64
Deep Blue
#040273
ΔE00 5.83
Navy
#000080
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B7B #677B1B
analogous
#1B377B #2F1B7B #5F1B7B
triadic
#2F1B7B #7B2F1B #1B7B2F
tetradic
#2F1B7B #7B1B37 #677B1B #1B7B5F
square
#2F1B7B #7B1B37 #677B1B #1B7B5F
split-complementary
#2F1B7B #7B5F1B #377B1B
monochromatic
#0A0619 #1C1049 #2F1B7B #4226AD #5C3CD4
Accessibility & contrast
On white
13.43
#2F1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F1B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B7B
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B7B | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1b7b; /* rgb */ color: rgb(47, 27, 123); /* oklch */ color: oklch(32.1% 0.151 283.4);
Tailwind
colors: {
custom: {
50: '#725aa2',
500: '#2f1b7b',
950: '#000000',
},
}SCSS
$custom: #2f1b7b; $custom-light: #725aa2; $custom-dark: #000000;
JSON
{
"hex": "#2f1b7b",
"rgb": {
"r": 47,
"g": 27,
"b": 123
},
"hsl": {
"h": 252.5,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.32067,
"c": 0.15087,
"h": 283.4
},
"luminance": 0.02818
}Semantic roles & 50–950 ramp
primary
#2F1B7B
secondary
#98AF43
accent
#E741C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F