#2F1F99#2F1F99
#2F1F99 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.184 H 277.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F99 |
|---|---|
| RGB | rgb(47, 31, 153) |
| HSL | hsl(248, 66%, 36%) |
| HSV | hsv(248, 80%, 60%) |
| CMYK | cmyk(69.3%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(23.28, 44.28, -63.12) |
| CIE-LCH | lch(23.28, 77.10, 305.05°) |
| OKLab | oklab(35.82% 0.0243 -0.1824) |
| OKLCH | oklch(35.82% 0.184 277.6) |
| XYZ | xyz(7.4102, 3.8836, 30.4899) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.16
Indigo Blue
#3A18B1
ΔE00 3.69
Cobalt Blue
#030AA7
ΔE00 4.15
Royal Blue (survey)
#0504AA
ΔE00 4.60
Ultramarine
#2000B1
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F99 #89991F
analogous
#1F4C99 #2F1F99 #6C1F99
triadic
#2F1F99 #992F1F #1F992F
tetradic
#2F1F99 #991F4C #89991F #1F996C
square
#2F1F99 #991F4C #89991F #1F996C
split-complementary
#2F1F99 #996C1F #4C991F
monochromatic
#100A33 #1F1566 #2F1F99 #3F29CC #6756DD
Accessibility & contrast
On white
11.82
#2F1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2F1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F99
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F99 | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f1f99; /* rgb */ color: rgb(47, 31, 153); /* oklch */ color: oklch(35.8% 0.184 277.6);
Tailwind
colors: {
custom: {
50: '#785eb8',
500: '#2f1f99',
950: '#000000',
},
}SCSS
$custom: #2f1f99; $custom-light: #785eb8; $custom-dark: #000000;
JSON
{
"hex": "#2f1f99",
"rgb": {
"r": 47,
"g": 31,
"b": 153
},
"hsl": {
"h": 247.869,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.35824,
"c": 0.18398,
"h": 277.6
},
"luminance": 0.03884
}Semantic roles & 50–950 ramp
primary
#2F1F99
secondary
#B2C054
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981