#2F2971#2F2971
#2F2971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.120 H 281.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2971 |
|---|---|
| RGB | rgb(47, 41, 113) |
| HSL | hsl(245, 47%, 30%) |
| HSV | hsv(245, 64%, 44%) |
| CMYK | cmyk(58.4%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(21.51, 24.96, -40.89) |
| CIE-LCH | lch(21.51, 47.90, 301.40°) |
| OKLab | oklab(33.37% 0.0238 -0.1174) |
| OKLCH | oklch(33.37% 0.12 281.5) |
| XYZ | xyz(4.9449, 3.3822, 16.0118) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.93
Darkslateblue
#483D8B
ΔE00 6.91
Royal
#0C1793
ΔE00 8.01
Blueberry
#464196
ΔE00 8.45
Marine
#042E60
ΔE00 8.56
Dark Indigo
#1F0954
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2971 #6B7129
analogous
#294771 #2F2971 #532971
triadic
#2F2971 #712F29 #29712F
tetradic
#2F2971 #712947 #6B7129 #297153
square
#2F2971 #712947 #6B7129 #297153
split-complementary
#2F2971 #715329 #477129
monochromatic
#0A0817 #1C1944 #2F2971 #42399E #5D54C1
Accessibility & contrast
On white
12.53
#2F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2F2971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2971
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2971 | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#0E3A48
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f2971; /* rgb */ color: rgb(47, 41, 113); /* oklch */ color: oklch(33.4% 0.120 281.5);
Tailwind
colors: {
custom: {
50: '#6f639a',
500: '#2f2971',
950: '#000000',
},
}SCSS
$custom: #2f2971; $custom-light: #6f639a; $custom-dark: #000000;
JSON
{
"hex": "#2f2971",
"rgb": {
"r": 47,
"g": 41,
"b": 113
},
"hsl": {
"h": 245,
"s": 46.753,
"l": 30.196
},
"oklch": {
"l": 0.33371,
"c": 0.11975,
"h": 281.5
},
"luminance": 0.03382
}Semantic roles & 50–950 ramp
primary
#2F2971
secondary
#9CA353
accent
#D651CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E