#2F1F9E#2F1F9E
#2F1F9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.190 H 276.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F9E |
|---|---|
| RGB | rgb(47, 31, 158) |
| HSL | hsl(248, 67%, 37%) |
| HSV | hsv(248, 80%, 62%) |
| CMYK | cmyk(70.3%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(23.84, 45.84, -65.25) |
| CIE-LCH | lch(23.84, 79.74, 305.09°) |
| OKLab | oklab(36.38% 0.0229 -0.1886) |
| OKLCH | oklch(36.38% 0.19 276.9) |
| XYZ | xyz(7.8318, 4.0522, 32.7105) |
| Luminance | 0.0405 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.07
Royal
#0C1793
ΔE00 3.45
Cobalt Blue
#030AA7
ΔE00 3.93
Ultramarine
#2000B1
ΔE00 4.32
Royal Blue (survey)
#0504AA
ΔE00 4.34
True Blue
#010FCC
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F9E #8E9E1F
analogous
#1F4F9E #2F1F9E #6F1F9E
triadic
#2F1F9E #9E2F1F #1F9E2F
tetradic
#2F1F9E #9E1F4F #8E9E1F #1F9E6F
square
#2F1F9E #9E1F4F #8E9E1F #1F9E6F
split-complementary
#2F1F9E #9E6F1F #4F9E1F
monochromatic
#110B38 #20156B #2F1F9E #3E29D1 #6A59DE
Accessibility & contrast
On white
11.60
#2F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#2F1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F9E
11.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F9E | 1.00 | 11.60 | 1.81 | 11.60 |
| #FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f1f9e; /* rgb */ color: rgb(47, 31, 158); /* oklch */ color: oklch(36.4% 0.190 276.9);
Tailwind
colors: {
custom: {
50: '#795ebc',
500: '#2f1f9e',
950: '#000000',
},
}SCSS
$custom: #2f1f9e; $custom-light: #795ebc; $custom-dark: #000000;
JSON
{
"hex": "#2f1f9e",
"rgb": {
"r": 47,
"g": 31,
"b": 158
},
"hsl": {
"h": 247.559,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.3638,
"c": 0.18997,
"h": 276.9
},
"luminance": 0.04053
}Semantic roles & 50–950 ramp
primary
#2F1F9E
secondary
#B5C256
accent
#EA3ED4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981