#2F1F82#2F1F82
#2F1F82 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 281.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F82 |
|---|---|
| RGB | rgb(47, 31, 130) |
| HSL | hsl(250, 61%, 32%) |
| HSV | hsv(250, 76%, 51%) |
| CMYK | cmyk(63.8%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(20.81, 36.93, -52.87) |
| CIE-LCH | lch(20.81, 64.49, 304.94°) |
| OKLab | oklab(33.35% 0.0303 -0.1525) |
| OKLCH | oklch(33.35% 0.155 281.2) |
| XYZ | xyz(5.6903, 3.1956, 21.4317) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.88
Royal
#0C1793
ΔE00 4.08
Indigo (survey)
#380282
ΔE00 4.94
Darkblue
#00008B
ΔE00 6.17
Navy
#000080
ΔE00 6.37
Cobalt Blue
#030AA7
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F82 #72821F
analogous
#1F4182 #2F1F82 #611F82
triadic
#2F1F82 #822F1F #1F822F
tetradic
#2F1F82 #821F41 #72821F #1F8261
square
#2F1F82 #821F41 #72821F #1F8261
split-complementary
#2F1F82 #82611F #41821F
monochromatic
#0B071F #1D1351 #2F1F82 #412BB3 #5F48D3
Accessibility & contrast
On white
12.81
#2F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2F1F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F82
12.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F82 | 1.00 | 12.81 | 1.64 | 12.81 |
| #FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1f82; /* rgb */ color: rgb(47, 31, 130); /* oklch */ color: oklch(33.4% 0.155 281.2);
Tailwind
colors: {
custom: {
50: '#735da7',
500: '#2f1f82',
950: '#000000',
},
}SCSS
$custom: #2f1f82; $custom-light: #735da7; $custom-dark: #000000;
JSON
{
"hex": "#2f1f82",
"rgb": {
"r": 47,
"g": 31,
"b": 130
},
"hsl": {
"h": 249.697,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.33352,
"c": 0.15548,
"h": 281.2
},
"luminance": 0.03196
}Semantic roles & 50–950 ramp
primary
#2F1F82
secondary
#A3B548
accent
#E543CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F