#2F1693#2F1693
#2F1693 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.184 H 279.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1693 |
|---|---|
| RGB | rgb(47, 22, 147) |
| HSL | hsl(252, 74%, 33%) |
| HSV | hsv(252, 85%, 58%) |
| CMYK | cmyk(68%, 85%, 0%, 42.4%) |
| CIE-LAB | lab(21.15, 46.67, -62.95) |
| CIE-LCH | lch(21.15, 78.36, 306.55°) |
| OKLab | oklab(34.14% 0.0303 -0.1817) |
| OKLCH | oklch(34.14% 0.184 279.5) |
| XYZ | xyz(6.7240, 3.2842, 27.8777) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.77
Cobalt Blue
#030AA7
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.03
Ultramarine
#2000B1
ΔE00 4.35
Indigo Blue
#3A18B1
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1693 #7A9316
analogous
#163B93 #2F1693 #6D1693
triadic
#2F1693 #932F16 #16932F
tetradic
#2F1693 #93163B #7A9316 #16936D
square
#2F1693 #93163B #7A9316 #16936D
split-complementary
#2F1693 #936D16 #3B9316
monochromatic
#0D0629 #1E0E5E #2F1693 #401EC8 #6141E3
Accessibility & contrast
On white
12.67
#2F1693 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F1693 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1693
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1693 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1693 | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1693; /* rgb */ color: rgb(47, 22, 147); /* oklch */ color: oklch(34.1% 0.184 279.5);
Tailwind
colors: {
custom: {
50: '#7759b4',
500: '#2f1693',
950: '#000000',
},
}SCSS
$custom: #2f1693; $custom-light: #7759b4; $custom-dark: #000000;
JSON
{
"hex": "#2f1693",
"rgb": {
"r": 47,
"g": 22,
"b": 147
},
"hsl": {
"h": 252,
"s": 73.964,
"l": 33.137
},
"oklch": {
"l": 0.34145,
"c": 0.18425,
"h": 279.5
},
"luminance": 0.03285
}Semantic roles & 50–950 ramp
primary
#2F1693
secondary
#A9C342
accent
#F137CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980