#2F1A67#2F1A67
#2F1A67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 288.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A67 |
|---|---|
| RGB | rgb(47, 26, 103) |
| HSL | hsl(256, 60%, 25%) |
| HSV | hsv(256, 75%, 40%) |
| CMYK | cmyk(54.4%, 74.8%, 0%, 59.6%) |
| CIE-LAB | lab(17.09, 31.11, -41.59) |
| CIE-LCH | lch(17.09, 51.94, 306.80°) |
| OKLab | oklab(29.9% 0.0409 -0.1194) |
| OKLCH | oklch(29.9% 0.126 288.9) |
| XYZ | xyz(3.9892, 2.3222, 13.0674) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.88
Dark Indigo
#1F0954
ΔE00 4.66
Darkblue (survey)
#030764
ΔE00 6.02
Indigo (survey)
#380282
ΔE00 6.30
Dark Royal Blue
#02066F
ΔE00 6.32
Deep Blue
#040273
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A67 #52671A
analogous
#1A2B67 #2F1A67 #561A67
triadic
#2F1A67 #672F1A #1A672F
tetradic
#2F1A67 #671A2B #52671A #1A6756
square
#2F1A67 #671A2B #52671A #1A6756
split-complementary
#2F1A67 #67561A #2B671A
monochromatic
#0B0618 #190E36 #2F1A67 #452698 #5C33C9
Accessibility & contrast
On white
14.34
#2F1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F1A67 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A67
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A67 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A67 | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#1B2E3E
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f1a67; /* rgb */ color: rgb(47, 26, 103); /* oklch */ color: oklch(29.9% 0.126 288.9);
Tailwind
colors: {
custom: {
50: '#6e5893',
500: '#2f1a67',
950: '#000000',
},
}SCSS
$custom: #2f1a67; $custom-light: #6e5893; $custom-dark: #000000;
JSON
{
"hex": "#2f1a67",
"rgb": {
"r": 47,
"g": 26,
"b": 103
},
"hsl": {
"h": 256.364,
"s": 59.69,
"l": 25.294
},
"oklch": {
"l": 0.29897,
"c": 0.12624,
"h": 288.9
},
"luminance": 0.02322
}Semantic roles & 50–950 ramp
primary
#2F1A67
secondary
#839D40
accent
#E345B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E