#2F2A7F#2F2A7F
#2F2A7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.138 H 279.0°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2A7F |
|---|---|
| RGB | rgb(47, 42, 127) |
| HSL | hsl(244, 50%, 33%) |
| HSV | hsv(244, 67%, 50%) |
| CMYK | cmyk(63%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(22.97, 29.20, -47.43) |
| CIE-LCH | lch(22.97, 55.70, 301.62°) |
| OKLab | oklab(34.81% 0.0217 -0.1366) |
| OKLCH | oklch(34.81% 0.138 279) |
| XYZ | xyz(5.8298, 3.7921, 20.4993) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.98
Darkslateblue
#483D8B
ΔE00 6.16
Royal
#0C1793
ΔE00 6.22
Blueberry
#464196
ΔE00 7.22
Sapphire (survey)
#2138AB
ΔE00 7.53
Indigo (survey)
#380282
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2A7F #7A7F2A
analogous
#2A4F7F #2F2A7F #592A7F
triadic
#2F2A7F #7F2F2A #2A7F2F
tetradic
#2F2A7F #7F2A4F #7A7F2A #2A7F59
square
#2F2A7F #7F2A4F #7A7F2A #2A7F59
split-complementary
#2F2A7F #7F592A #4F7F2A
monochromatic
#0D0C23 #1E1B51 #2F2A7F #4039AD #615BC9
Accessibility & contrast
On white
11.94
#2F2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2F2A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2A7F
11.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2A7F | 1.00 | 11.94 | 1.76 | 11.94 |
| #FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f2a7f; /* rgb */ color: rgb(47, 42, 127); /* oklch */ color: oklch(34.8% 0.138 279.0);
Tailwind
colors: {
custom: {
50: '#7164a5',
500: '#2f2a7f',
950: '#000000',
},
}SCSS
$custom: #2f2a7f; $custom-light: #7164a5; $custom-dark: #000000;
JSON
{
"hex": "#2f2a7f",
"rgb": {
"r": 47,
"g": 42,
"b": 127
},
"hsl": {
"h": 243.529,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.34814,
"c": 0.13831,
"h": 279
},
"luminance": 0.03793
}Semantic roles & 50–950 ramp
primary
#2F2A7F
secondary
#A9AE57
accent
#DA4ED2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F