#2F1B92#2F1B92
#2F1B92 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.179 H 279.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B92 |
|---|---|
| RGB | rgb(47, 27, 146) |
| HSL | hsl(250, 69%, 34%) |
| HSV | hsv(250, 82%, 57%) |
| CMYK | cmyk(67.8%, 81.5%, 0%, 42.7%) |
| CIE-LAB | lab(21.81, 44.09, -61.23) |
| CIE-LCH | lch(21.81, 75.46, 305.76°) |
| OKLab | oklab(34.57% 0.0283 -0.1768) |
| OKLCH | oklch(34.57% 0.179 279.1) |
| XYZ | xyz(6.7509, 3.4630, 27.5012) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.78
Cobalt Blue
#030AA7
ΔE00 4.17
Indigo Blue
#3A18B1
ΔE00 4.49
Indigo (survey)
#380282
ΔE00 4.55
Royal Blue (survey)
#0504AA
ΔE00 4.60
Ultramarine
#2000B1
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B92 #7E921B
analogous
#1B4392 #2F1B92 #6B1B92
triadic
#2F1B92 #922F1B #1B922F
tetradic
#2F1B92 #921B43 #7E921B #1B926B
square
#2F1B92 #921B43 #7E921B #1B926B
split-complementary
#2F1B92 #926B1B #43921B
monochromatic
#0E082B #1E115E #2F1B92 #4025C6 #634ADE
Accessibility & contrast
On white
12.41
#2F1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F1B92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B92
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B92 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1b92; /* rgb */ color: rgb(47, 27, 146); /* oklch */ color: oklch(34.6% 0.179 279.1);
Tailwind
colors: {
custom: {
50: '#775cb3',
500: '#2f1b92',
950: '#000000',
},
}SCSS
$custom: #2f1b92; $custom-light: #775cb3; $custom-dark: #000000;
JSON
{
"hex": "#2f1b92",
"rgb": {
"r": 47,
"g": 27,
"b": 146
},
"hsl": {
"h": 250.084,
"s": 68.786,
"l": 33.922
},
"oklch": {
"l": 0.34568,
"c": 0.17909,
"h": 279.1
},
"luminance": 0.03464
}Semantic roles & 50–950 ramp
primary
#2F1B92
secondary
#ACBF49
accent
#EC3CCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980