#2F1B95#2F1B95
#2F1B95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 278.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B95 |
|---|---|
| RGB | rgb(47, 27, 149) |
| HSL | hsl(250, 69%, 35%) |
| HSV | hsv(250, 82%, 58%) |
| CMYK | cmyk(68.5%, 81.9%, 0%, 41.6%) |
| CIE-LAB | lab(22.15, 45.01, -62.53) |
| CIE-LCH | lch(22.15, 77.04, 305.75°) |
| OKLab | oklab(34.91% 0.0274 -0.1806) |
| OKLCH | oklch(34.91% 0.183 278.6) |
| XYZ | xyz(6.9873, 3.5575, 28.7464) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.80
Cobalt Blue
#030AA7
ΔE00 3.91
Indigo Blue
#3A18B1
ΔE00 4.08
Royal Blue (survey)
#0504AA
ΔE00 4.33
Ultramarine
#2000B1
ΔE00 4.58
Indigo (survey)
#380282
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B95 #81951B
analogous
#1B4495 #2F1B95 #6C1B95
triadic
#2F1B95 #952F1B #1B952F
tetradic
#2F1B95 #951B44 #81951B #1B956C
square
#2F1B95 #951B44 #81951B #1B956C
split-complementary
#2F1B95 #956C1B #44951B
monochromatic
#0E082D #1F1261 #2F1B95 #3F24C9 #644CDF
Accessibility & contrast
On white
12.27
#2F1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2F1B95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B95
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B95 | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f1b95; /* rgb */ color: rgb(47, 27, 149); /* oklch */ color: oklch(34.9% 0.183 278.6);
Tailwind
colors: {
custom: {
50: '#775cb5',
500: '#2f1b95',
950: '#000000',
},
}SCSS
$custom: #2f1b95; $custom-light: #775cb5; $custom-dark: #000000;
JSON
{
"hex": "#2f1b95",
"rgb": {
"r": 47,
"g": 27,
"b": 149
},
"hsl": {
"h": 249.836,
"s": 69.318,
"l": 34.51
},
"oklch": {
"l": 0.34905,
"c": 0.18266,
"h": 278.6
},
"luminance": 0.03558
}Semantic roles & 50–950 ramp
primary
#2F1B95
secondary
#ADC14B
accent
#EC3CCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980