#2F1A9E#2F1A9E
#2F1A9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.194 H 277.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A9E |
|---|---|
| RGB | rgb(47, 26, 158) |
| HSL | hsl(250, 72%, 36%) |
| HSV | hsv(250, 84%, 62%) |
| CMYK | cmyk(70.3%, 83.5%, 0%, 38%) |
| CIE-LAB | lab(23.04, 48.19, -66.59) |
| CIE-LCH | lch(23.04, 82.20, 305.89°) |
| OKLab | oklab(35.82% 0.0251 -0.1924) |
| OKLCH | oklch(35.82% 0.194 277.4) |
| XYZ | xyz(7.7112, 3.8111, 32.6703) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.90
Royal
#0C1793
ΔE00 3.22
Cobalt Blue
#030AA7
ΔE00 3.28
Ultramarine
#2000B1
ΔE00 3.60
Royal Blue (survey)
#0504AA
ΔE00 3.63
Indigo (survey)
#380282
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A9E #899E1A
analogous
#1A479E #2F1A9E #711A9E
triadic
#2F1A9E #9E2F1A #1A9E2F
tetradic
#2F1A9E #9E1A47 #899E1A #1A9E71
square
#2F1A9E #9E1A47 #899E1A #1A9E71
split-complementary
#2F1A9E #9E711A #479E1A
monochromatic
#100935 #1F1169 #2F1A9E #3F23D3 #6750E2
Accessibility & contrast
On white
11.92
#2F1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2F1A9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A9E
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A9E | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f1a9e; /* rgb */ color: rgb(47, 26, 158); /* oklch */ color: oklch(35.8% 0.194 277.4);
Tailwind
colors: {
custom: {
50: '#795cbc',
500: '#2f1a9e',
950: '#000000',
},
}SCSS
$custom: #2f1a9e; $custom-light: #795cbc; $custom-dark: #000000;
JSON
{
"hex": "#2f1a9e",
"rgb": {
"r": 47,
"g": 26,
"b": 158
},
"hsl": {
"h": 249.545,
"s": 71.739,
"l": 36.078
},
"oklch": {
"l": 0.35821,
"c": 0.19401,
"h": 277.4
},
"luminance": 0.03812
}Semantic roles & 50–950 ramp
primary
#2F1A9E
secondary
#B2C54F
accent
#EE39D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981