#2F1B9B#2F1B9B
#2F1B9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.190 H 277.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B9B |
|---|---|
| RGB | rgb(47, 27, 155) |
| HSL | hsl(249, 70%, 36%) |
| HSV | hsv(249, 83%, 61%) |
| CMYK | cmyk(69.7%, 82.6%, 0%, 39.2%) |
| CIE-LAB | lab(22.84, 46.84, -65.08) |
| CIE-LCH | lch(22.84, 80.18, 305.74°) |
| OKLab | oklab(35.58% 0.0256 -0.188) |
| OKLCH | oklch(35.58% 0.19 277.7) |
| XYZ | xyz(7.4787, 3.7541, 31.3345) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.04
Indigo Blue
#3A18B1
ΔE00 3.29
Cobalt Blue
#030AA7
ΔE00 3.52
Royal Blue (survey)
#0504AA
ΔE00 3.91
Ultramarine
#2000B1
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B9B #879B1B
analogous
#1B479B #2F1B9B #6F1B9B
triadic
#2F1B9B #9B2F1B #1B9B2F
tetradic
#2F1B9B #9B1B47 #879B1B #1B9B6F
square
#2F1B9B #9B1B47 #879B1B #1B9B6F
split-complementary
#2F1B9B #9B6F1B #479B1B
monochromatic
#0F0933 #1F1267 #2F1B9B #3F24CF #6650E0
Accessibility & contrast
On white
11.99
#2F1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2F1B9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B9B
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B9B | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f1b9b; /* rgb */ color: rgb(47, 27, 155); /* oklch */ color: oklch(35.6% 0.190 277.7);
Tailwind
colors: {
custom: {
50: '#795cba',
500: '#2f1b9b',
950: '#000000',
},
}SCSS
$custom: #2f1b9b; $custom-light: #795cba; $custom-dark: #000000;
JSON
{
"hex": "#2f1b9b",
"rgb": {
"r": 47,
"g": 27,
"b": 155
},
"hsl": {
"h": 249.375,
"s": 70.33,
"l": 35.686
},
"oklch": {
"l": 0.35584,
"c": 0.18973,
"h": 277.7
},
"luminance": 0.03755
}Semantic roles & 50–950 ramp
primary
#2F1B9B
secondary
#B1C34F
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981