#2F2F7D#2F2F7D
#2F2F7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.129 H 277.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F7D |
|---|---|
| RGB | rgb(47, 47, 125) |
| HSL | hsl(240, 45%, 34%) |
| HSV | hsv(240, 62%, 49%) |
| CMYK | cmyk(62.4%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(24.06, 25.20, -44.40) |
| CIE-LCH | lch(24.06, 51.05, 299.57°) |
| OKLab | oklab(35.56% 0.0171 -0.1277) |
| OKLCH | oklch(35.56% 0.129 277.6) |
| XYZ | xyz(5.8893, 4.1176, 19.8825) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.35
Midnight Blue
#191970
ΔE00 6.19
Blueberry
#464196
ΔE00 6.39
Sapphire (survey)
#2138AB
ΔE00 7.33
Royal
#0C1793
ΔE00 7.68
Marine
#042E60
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F7D #7D7D2F
analogous
#2F567D #2F2F7D #562F7D
triadic
#2F2F7D #7D2F2F #2F7D2F
tetradic
#2F2F7D #7D2F56 #7D7D2F #2F7D56
square
#2F2F7D #7D2F56 #7D7D2F #2F7D56
split-complementary
#2F2F7D #7D562F #567D2F
monochromatic
#0E0E24 #1E1E51 #2F2F7D #4040A9 #6262C4
Accessibility & contrast
On white
11.52
#2F2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2F2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F7D
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F7D | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f2f7d; /* rgb */ color: rgb(47, 47, 125); /* oklch */ color: oklch(35.6% 0.129 277.6);
Tailwind
colors: {
custom: {
50: '#7067a3',
500: '#2f2f7d',
950: '#000000',
},
}SCSS
$custom: #2f2f7d; $custom-light: #7067a3; $custom-dark: #000000;
JSON
{
"hex": "#2f2f7d",
"rgb": {
"r": 47,
"g": 47,
"b": 125
},
"hsl": {
"h": 240,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.35555,
"c": 0.12879,
"h": 277.6
},
"luminance": 0.04118
}Semantic roles & 50–950 ramp
primary
#2F2F7D
secondary
#ABAB5D
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F