#2F1B63#2F1B63
#2F1B63 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.120 H 289.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B63 |
|---|---|
| RGB | rgb(47, 27, 99) |
| HSL | hsl(257, 57%, 25%) |
| HSV | hsv(257, 73%, 39%) |
| CMYK | cmyk(52.5%, 72.7%, 0%, 61.2%) |
| CIE-LAB | lab(16.94, 29.24, -39.22) |
| CIE-LCH | lch(16.94, 48.92, 306.71°) |
| OKLab | oklab(29.67% 0.0406 -0.1125) |
| OKLCH | oklch(29.67% 0.12 289.9) |
| XYZ | xyz(3.8157, 2.2889, 12.0427) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.46
Dark Indigo
#1F0954
ΔE00 4.60
Darkblue (survey)
#030764
ΔE00 6.48
Dark Royal Blue
#02066F
ΔE00 6.97
Indigo (survey)
#380282
ΔE00 7.14
Dark Blue
#00035B
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B63 #4F631B
analogous
#1B2B63 #2F1B63 #531B63
triadic
#2F1B63 #632F1B #1B632F
tetradic
#2F1B63 #631B2B #4F631B #1B6353
square
#2F1B63 #631B2B #4F631B #1B6353
split-complementary
#2F1B63 #63531B #2B631B
monochromatic
#0B0718 #180E33 #2F1B63 #462893 #5D35C3
Accessibility & contrast
On white
14.41
#2F1B63 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F1B63 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B63
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B63 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B63 | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1D2D3C
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f1b63; /* rgb */ color: rgb(47, 27, 99); /* oklch */ color: oklch(29.7% 0.120 289.9);
Tailwind
colors: {
custom: {
50: '#6d5990',
500: '#2f1b63',
950: '#000000',
},
}SCSS
$custom: #2f1b63; $custom-light: #6d5990; $custom-dark: #000000;
JSON
{
"hex": "#2f1b63",
"rgb": {
"r": 47,
"g": 27,
"b": 99
},
"hsl": {
"h": 256.667,
"s": 57.143,
"l": 24.706
},
"oklch": {
"l": 0.29668,
"c": 0.11958,
"h": 289.9
},
"luminance": 0.02289
}Semantic roles & 50–950 ramp
primary
#2F1B63
secondary
#809841
accent
#E047B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D