#2F1EA1#2F1EA1
#2F1EA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.194 H 276.7°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1EA1 |
|---|---|
| RGB | rgb(47, 30, 161) |
| HSL | hsl(248, 69%, 37%) |
| HSV | hsv(248, 81%, 63%) |
| CMYK | cmyk(70.8%, 81.4%, 0%, 36.9%) |
| CIE-LAB | lab(24.02, 47.25, -66.80) |
| CIE-LCH | lch(24.02, 81.82, 305.28°) |
| OKLab | oklab(36.6% 0.0225 -0.193) |
| OKLCH | oklch(36.6% 0.194 276.7) |
| XYZ | xyz(8.0675, 4.1053, 34.0786) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.66
Royal
#0C1793
ΔE00 3.62
Cobalt Blue
#030AA7
ΔE00 3.72
Ultramarine
#2000B1
ΔE00 3.96
Royal Blue (survey)
#0504AA
ΔE00 4.09
True Blue
#010FCC
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1EA1 #90A11E
analogous
#1E4FA1 #2F1EA1 #701EA1
triadic
#2F1EA1 #A12F1E #1EA12F
tetradic
#2F1EA1 #A11E4F #90A11E #1EA170
square
#2F1EA1 #A11E4F #90A11E #1EA170
split-complementary
#2F1EA1 #A1701E #4FA11E
monochromatic
#110B3A #20146D #2F1EA1 #3E28D5 #6B59E0
Accessibility & contrast
On white
11.53
#2F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2F1EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1EA1
11.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1EA1 | 1.00 | 11.53 | 1.82 | 11.53 |
| #FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f1ea1; /* rgb */ color: rgb(47, 30, 161); /* oklch */ color: oklch(36.6% 0.194 276.7);
Tailwind
colors: {
custom: {
50: '#7a5ebe',
500: '#2f1ea1',
950: '#000000',
},
}SCSS
$custom: #2f1ea1; $custom-light: #7a5ebe; $custom-dark: #000000;
JSON
{
"hex": "#2f1ea1",
"rgb": {
"r": 47,
"g": 30,
"b": 161
},
"hsl": {
"h": 247.786,
"s": 68.586,
"l": 37.451
},
"oklch": {
"l": 0.366,
"c": 0.19436,
"h": 276.7
},
"luminance": 0.04106
}Semantic roles & 50–950 ramp
primary
#2F1EA1
secondary
#B6C457
accent
#EB3CD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981