#2F2F81#2F2F81
#2F2F81 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.135 H 277.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F81 |
|---|---|
| RGB | rgb(47, 47, 129) |
| HSL | hsl(240, 47%, 35%) |
| HSV | hsv(240, 64%, 51%) |
| CMYK | cmyk(63.6%, 63.6%, 0%, 49.4%) |
| CIE-LAB | lab(24.39, 26.63, -46.38) |
| CIE-LCH | lch(24.39, 53.48, 299.86°) |
| OKLab | oklab(35.91% 0.0169 -0.1335) |
| OKLCH | oklch(35.91% 0.135 277.2) |
| XYZ | xyz(6.1500, 4.2219, 21.2554) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.25
Blueberry
#464196
ΔE00 6.12
Midnight Blue
#191970
ΔE00 6.24
Sapphire (survey)
#2138AB
ΔE00 6.72
Royal
#0C1793
ΔE00 7.23
Marine
#042E60
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F81 #81812F
analogous
#2F5881 #2F2F81 #582F81
triadic
#2F2F81 #812F2F #2F812F
tetradic
#2F2F81 #812F58 #81812F #2F8158
square
#2F2F81 #812F58 #81812F #2F8158
split-complementary
#2F2F81 #81582F #58812F
monochromatic
#0E0E27 #1F1F54 #2F2F81 #3F3FAE #6464C6
Accessibility & contrast
On white
11.39
#2F2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2F2F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F81
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F81 | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f2f81; /* rgb */ color: rgb(47, 47, 129); /* oklch */ color: oklch(35.9% 0.135 277.2);
Tailwind
colors: {
custom: {
50: '#7167a6',
500: '#2f2f81',
950: '#000000',
},
}SCSS
$custom: #2f2f81; $custom-light: #7167a6; $custom-dark: #000000;
JSON
{
"hex": "#2f2f81",
"rgb": {
"r": 47,
"g": 47,
"b": 129
},
"hsl": {
"h": 240,
"s": 46.591,
"l": 34.51
},
"oklch": {
"l": 0.35907,
"c": 0.13453,
"h": 277.2
},
"luminance": 0.04222
}Semantic roles & 50–950 ramp
primary
#2F2F81
secondary
#ADAD5E
accent
#D652D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F