#2F216F#2F216F
#2F216F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.128 H 284.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F216F |
|---|---|
| RGB | rgb(47, 33, 111) |
| HSL | hsl(251, 54%, 28%) |
| HSV | hsv(251, 70%, 44%) |
| CMYK | cmyk(57.7%, 70.3%, 0%, 56.5%) |
| CIE-LAB | lab(19.39, 29.47, -43.06) |
| CIE-LCH | lch(19.39, 52.18, 304.39°) |
| OKLab | oklab(31.77% 0.0324 -0.1238) |
| OKLCH | oklch(31.77% 0.128 284.7) |
| XYZ | xyz(4.5845, 2.8395, 15.3423) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.47
Dark Indigo
#1F0954
ΔE00 6.57
Indigo (survey)
#380282
ΔE00 6.82
Darkblue (survey)
#030764
ΔE00 7.00
Dark Royal Blue
#02066F
ΔE00 7.02
Royal
#0C1793
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F216F #616F21
analogous
#213A6F #2F216F #56216F
triadic
#2F216F #6F2F21 #216F2F
tetradic
#2F216F #6F213A #616F21 #216F56
square
#2F216F #6F213A #616F21 #216F56
split-complementary
#2F216F #6F5621 #3A6F21
monochromatic
#0A0718 #1B1340 #2F216F #432F9E #5B43C7
Accessibility & contrast
On white
13.39
#2F216F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F216F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F216F
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F216F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F216F | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#123545
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f216f; /* rgb */ color: rgb(47, 33, 111); /* oklch */ color: oklch(31.8% 0.128 284.7);
Tailwind
colors: {
custom: {
50: '#6f5d99',
500: '#2f216f',
950: '#000000',
},
}SCSS
$custom: #2f216f; $custom-light: #6f5d99; $custom-dark: #000000;
JSON
{
"hex": "#2f216f",
"rgb": {
"r": 47,
"g": 33,
"b": 111
},
"hsl": {
"h": 250.769,
"s": 54.167,
"l": 28.235
},
"oklch": {
"l": 0.31772,
"c": 0.12793,
"h": 284.7
},
"luminance": 0.0284
}Semantic roles & 50–950 ramp
primary
#2F216F
secondary
#93A349
accent
#DE4AC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E