#2F1A8C#2F1A8C
#2F1A8C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.173 H 280.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A8C |
|---|---|
| RGB | rgb(47, 26, 140) |
| HSL | hsl(251, 69%, 33%) |
| HSV | hsv(251, 81%, 55%) |
| CMYK | cmyk(66.4%, 81.4%, 0%, 45.1%) |
| CIE-LAB | lab(20.97, 42.73, -58.90) |
| CIE-LCH | lch(20.97, 72.77, 305.96°) |
| OKLab | oklab(33.78% 0.0307 -0.17) |
| OKLCH | oklch(33.78% 0.173 280.2) |
| XYZ | xyz(6.2738, 3.2361, 25.0999) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.93
Indigo (survey)
#380282
ΔE00 4.02
Cobalt Blue
#030AA7
ΔE00 4.70
Darkblue
#00008B
ΔE00 4.99
Midnight Blue
#191970
ΔE00 5.11
Royal Blue (survey)
#0504AA
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A8C #778C1A
analogous
#1A3E8C #2F1A8C #681A8C
triadic
#2F1A8C #8C2F1A #1A8C2F
tetradic
#2F1A8C #8C1A3E #778C1A #1A8C68
square
#2F1A8C #8C1A3E #778C1A #1A8C68
split-complementary
#2F1A8C #8C681A #3E8C1A
monochromatic
#0C0725 #1E1058 #2F1A8C #4024C0 #6044DC
Accessibility & contrast
On white
12.75
#2F1A8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2F1A8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A8C
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A8C | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1a8c; /* rgb */ color: rgb(47, 26, 140); /* oklch */ color: oklch(33.8% 0.173 280.2);
Tailwind
colors: {
custom: {
50: '#765baf',
500: '#2f1a8c',
950: '#000000',
},
}SCSS
$custom: #2f1a8c; $custom-light: #765baf; $custom-dark: #000000;
JSON
{
"hex": "#2f1a8c",
"rgb": {
"r": 47,
"g": 26,
"b": 140
},
"hsl": {
"h": 251.053,
"s": 68.675,
"l": 32.549
},
"oklch": {
"l": 0.33782,
"c": 0.17277,
"h": 280.2
},
"luminance": 0.03237
}Semantic roles & 50–950 ramp
primary
#2F1A8C
secondary
#A7BE44
accent
#EC3CCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F