#2F1C96#2F1C96
#2F1C96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.183 H 278.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C96 |
|---|---|
| RGB | rgb(47, 28, 150) |
| HSL | hsl(249, 69%, 35%) |
| HSV | hsv(249, 81%, 59%) |
| CMYK | cmyk(68.7%, 81.3%, 0%, 41.2%) |
| CIE-LAB | lab(22.43, 44.84, -62.68) |
| CIE-LCH | lch(22.43, 77.07, 305.58°) |
| OKLab | oklab(35.13% 0.0266 -0.1811) |
| OKLCH | oklch(35.13% 0.183 278.4) |
| XYZ | xyz(7.0908, 3.6362, 29.1764) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.86
Cobalt Blue
#030AA7
ΔE00 3.95
Indigo Blue
#3A18B1
ΔE00 3.97
Royal Blue (survey)
#0504AA
ΔE00 4.38
Ultramarine
#2000B1
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C96 #83961C
analogous
#1C4696 #2F1C96 #6C1C96
triadic
#2F1C96 #962F1C #1C962F
tetradic
#2F1C96 #961C46 #83961C #1C966C
square
#2F1C96 #961C46 #83961C #1C966C
split-complementary
#2F1C96 #966C1C #46961C
monochromatic
#0F092F #1F1262 #2F1C96 #3F26CA #654EDE
Accessibility & contrast
On white
12.16
#2F1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2F1C96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C96
12.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C96 | 1.00 | 12.16 | 1.73 | 12.16 |
| #FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f1c96; /* rgb */ color: rgb(47, 28, 150); /* oklch */ color: oklch(35.1% 0.183 278.4);
Tailwind
colors: {
custom: {
50: '#785cb6',
500: '#2f1c96',
950: '#000000',
},
}SCSS
$custom: #2f1c96; $custom-light: #785cb6; $custom-dark: #000000;
JSON
{
"hex": "#2f1c96",
"rgb": {
"r": 47,
"g": 28,
"b": 150
},
"hsl": {
"h": 249.344,
"s": 68.539,
"l": 34.902
},
"oklch": {
"l": 0.35132,
"c": 0.18301,
"h": 278.4
},
"luminance": 0.03637
}Semantic roles & 50–950 ramp
primary
#2F1C96
secondary
#AFC14D
accent
#EB3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980