#2F216A#2F216A
#2F216A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.121 H 285.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2F216A |
|---|---|
| RGB | rgb(47, 33, 106) |
| HSL | hsl(252, 53%, 27%) |
| HSV | hsv(252, 69%, 42%) |
| CMYK | cmyk(55.7%, 68.9%, 0%, 58.4%) |
| CIE-LAB | lab(18.94, 27.80, -40.54) |
| CIE-LCH | lch(18.94, 49.16, 304.43°) |
| OKLab | oklab(31.31% 0.0331 -0.1164) |
| OKLCH | oklch(31.31% 0.121 285.9) |
| XYZ | xyz(4.3169, 2.7324, 13.9328) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.96
Dark Indigo
#1F0954
ΔE00 6.23
Darkblue (survey)
#030764
ΔE00 7.18
Dark Royal Blue
#02066F
ΔE00 7.42
Indigo (survey)
#380282
ΔE00 7.46
Royal
#0C1793
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F216A #5C6A21
analogous
#21386A #2F216A #54216A
triadic
#2F216A #6A2F21 #216A2F
tetradic
#2F216A #6A2138 #5C6A21 #216A54
square
#2F216A #6A2138 #5C6A21 #216A54
split-complementary
#2F216A #6A5421 #386A21
monochromatic
#0A0717 #1A123B #2F216A #443099 #5A41C4
Accessibility & contrast
On white
13.58
#2F216A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F216A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F216A
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F216A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F216A | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#173342
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f216a; /* rgb */ color: rgb(47, 33, 106); /* oklch */ color: oklch(31.3% 0.121 285.9);
Tailwind
colors: {
custom: {
50: '#6e5d95',
500: '#2f216a',
950: '#000000',
},
}SCSS
$custom: #2f216a; $custom-light: #6e5d95; $custom-dark: #000000;
JSON
{
"hex": "#2f216a",
"rgb": {
"r": 47,
"g": 33,
"b": 106
},
"hsl": {
"h": 251.507,
"s": 52.518,
"l": 27.255
},
"oklch": {
"l": 0.31306,
"c": 0.121,
"h": 285.9
},
"luminance": 0.02733
}Semantic roles & 50–950 ramp
primary
#2F216A
secondary
#8E9E49
accent
#DC4CC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E