#2F216B#2F216B
#2F216B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.4% C 0.122 H 285.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2F216B |
|---|---|
| RGB | rgb(47, 33, 107) |
| HSL | hsl(251, 53%, 27%) |
| HSV | hsv(251, 69%, 42%) |
| CMYK | cmyk(56.1%, 69.2%, 0%, 58%) |
| CIE-LAB | lab(19.03, 28.13, -41.05) |
| CIE-LCH | lch(19.03, 49.76, 304.42°) |
| OKLab | oklab(31.4% 0.033 -0.1179) |
| OKLCH | oklch(31.4% 0.122 285.6) |
| XYZ | xyz(4.3692, 2.7534, 14.2083) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.84
Dark Indigo
#1F0954
ΔE00 6.28
Darkblue (survey)
#030764
ΔE00 7.13
Indigo (survey)
#380282
ΔE00 7.32
Dark Royal Blue
#02066F
ΔE00 7.33
Royal
#0C1793
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F216B #5D6B21
analogous
#21386B #2F216B #54216B
triadic
#2F216B #6B2F21 #216B2F
tetradic
#2F216B #6B2138 #5D6B21 #216B54
square
#2F216B #6B2138 #5D6B21 #216B54
split-complementary
#2F216B #6B5421 #386B21
monochromatic
#0A0717 #1A133C #2F216B #442F9A #5B42C5
Accessibility & contrast
On white
13.54
#2F216B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F216B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F216B
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F216B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F216B | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#163343
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f216b; /* rgb */ color: rgb(47, 33, 107); /* oklch */ color: oklch(31.4% 0.122 285.6);
Tailwind
colors: {
custom: {
50: '#6e5d96',
500: '#2f216b',
950: '#000000',
},
}SCSS
$custom: #2f216b; $custom-light: #6e5d96; $custom-dark: #000000;
JSON
{
"hex": "#2f216b",
"rgb": {
"r": 47,
"g": 33,
"b": 107
},
"hsl": {
"h": 251.351,
"s": 52.857,
"l": 27.451
},
"oklch": {
"l": 0.31398,
"c": 0.12239,
"h": 285.6
},
"luminance": 0.02754
}Semantic roles & 50–950 ramp
primary
#2F216B
secondary
#8F9F49
accent
#DC4CC1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E