#2F1D9F#2F1D9F
#2F1D9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 277.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1D9F |
|---|---|
| RGB | rgb(47, 29, 159) |
| HSL | hsl(248, 69%, 37%) |
| HSV | hsv(248, 82%, 62%) |
| CMYK | cmyk(70.4%, 81.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.62, 47.11, -66.23) |
| CIE-LCH | lch(23.62, 81.28, 305.43°) |
| OKLab | oklab(36.26% 0.0235 -0.1914) |
| OKLCH | oklch(36.26% 0.193 277) |
| XYZ | xyz(7.8676, 3.9856, 33.1488) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.84
Royal
#0C1793
ΔE00 3.40
Cobalt Blue
#030AA7
ΔE00 3.62
Ultramarine
#2000B1
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.00
True Blue
#010FCC
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1D9F #8D9F1D
analogous
#1D4C9F #2F1D9F #701D9F
triadic
#2F1D9F #9F2F1D #1D9F2F
tetradic
#2F1D9F #9F1D4C #8D9F1D #1D9F70
square
#2F1D9F #9F1D4C #8D9F1D #1D9F70
split-complementary
#2F1D9F #9F701D #4C9F1D
monochromatic
#100A37 #20146B #2F1D9F #3E26D3 #6956E0
Accessibility & contrast
On white
11.68
#2F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2F1D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1D9F
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1D9F | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f1d9f; /* rgb */ color: rgb(47, 29, 159); /* oklch */ color: oklch(36.3% 0.193 277.0);
Tailwind
colors: {
custom: {
50: '#795dbd',
500: '#2f1d9f',
950: '#000000',
},
}SCSS
$custom: #2f1d9f; $custom-light: #795dbd; $custom-dark: #000000;
JSON
{
"hex": "#2f1d9f",
"rgb": {
"r": 47,
"g": 29,
"b": 159
},
"hsl": {
"h": 248.308,
"s": 69.149,
"l": 36.863
},
"oklch": {
"l": 0.36261,
"c": 0.19282,
"h": 277
},
"luminance": 0.03986
}Semantic roles & 50–950 ramp
primary
#2F1D9F
secondary
#B4C454
accent
#EC3CD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981