#2F1B99#2F1B99
#2F1B99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.187 H 278.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B99 |
|---|---|
| RGB | rgb(47, 27, 153) |
| HSL | hsl(250, 70%, 35%) |
| HSV | hsv(250, 82%, 60%) |
| CMYK | cmyk(69.3%, 82.4%, 0%, 40%) |
| CIE-LAB | lab(22.61, 46.23, -64.23) |
| CIE-LCH | lch(22.61, 79.14, 305.74°) |
| OKLab | oklab(35.36% 0.0262 -0.1855) |
| OKLCH | oklch(35.36% 0.187 278) |
| XYZ | xyz(7.3121, 3.6875, 30.4572) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.93
Indigo Blue
#3A18B1
ΔE00 3.55
Cobalt Blue
#030AA7
ΔE00 3.63
Royal Blue (survey)
#0504AA
ΔE00 4.03
Ultramarine
#2000B1
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B99 #85991B
analogous
#1B4699 #2F1B99 #6E1B99
triadic
#2F1B99 #992F1B #1B992F
tetradic
#2F1B99 #991B46 #85991B #1B996E
square
#2F1B99 #991B46 #85991B #1B996E
split-complementary
#2F1B99 #996E1B #46991B
monochromatic
#0F0931 #1F1265 #2F1B99 #3F24CD #664FE0
Accessibility & contrast
On white
12.09
#2F1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2F1B99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B99
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B99 | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f1b99; /* rgb */ color: rgb(47, 27, 153); /* oklch */ color: oklch(35.4% 0.187 278.0);
Tailwind
colors: {
custom: {
50: '#785cb8',
500: '#2f1b99',
950: '#000000',
},
}SCSS
$custom: #2f1b99; $custom-light: #785cb8; $custom-dark: #000000;
JSON
{
"hex": "#2f1b99",
"rgb": {
"r": 47,
"g": 27,
"b": 153
},
"hsl": {
"h": 249.524,
"s": 70,
"l": 35.294
},
"oklch": {
"l": 0.35357,
"c": 0.18739,
"h": 278
},
"luminance": 0.03688
}Semantic roles & 50–950 ramp
primary
#2F1B99
secondary
#B0C24E
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981