#2F2A8C#2F2A8C
#2F2A8C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.156 H 277.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2A8C |
|---|---|
| RGB | rgb(47, 42, 140) |
| HSL | hsl(243, 54%, 36%) |
| HSV | hsv(243, 70%, 55%) |
| CMYK | cmyk(66.4%, 70%, 0%, 45.1%) |
| CIE-LAB | lab(24.17, 33.72, -53.62) |
| CIE-LCH | lch(24.17, 63.34, 302.17°) |
| OKLab | oklab(36.05% 0.0201 -0.1547) |
| OKLCH | oklch(36.05% 0.156 277.4) |
| XYZ | xyz(6.7323, 4.1532, 25.2527) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.08
Midnight Blue
#191970
ΔE00 5.91
Sapphire (survey)
#2138AB
ΔE00 5.96
Darkslateblue
#483D8B
ΔE00 6.30
Indigo Blue
#3A18B1
ΔE00 6.69
Blueberry
#464196
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2A8C #878C2A
analogous
#2A568C #2F2A8C #602A8C
triadic
#2F2A8C #8C2F2A #2A8C2F
tetradic
#2F2A8C #8C2A56 #878C2A #2A8C60
square
#2F2A8C #8C2A56 #878C2A #2A8C60
split-complementary
#2F2A8C #8C602A #568C2A
monochromatic
#0F0E2E #1F1C5D #2F2A8C #3F38BB #6661D0
Accessibility & contrast
On white
11.47
#2F2A8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F2A8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2A8C
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2A8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2A8C | 1.00 | 11.47 | 1.83 | 11.47 |
| #FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f2a8c; /* rgb */ color: rgb(47, 42, 140); /* oklch */ color: oklch(36.1% 0.156 277.4);
Tailwind
colors: {
custom: {
50: '#7464af',
500: '#2f2a8c',
950: '#000000',
},
}SCSS
$custom: #2f2a8c; $custom-light: #7464af; $custom-dark: #000000;
JSON
{
"hex": "#2f2a8c",
"rgb": {
"r": 47,
"g": 42,
"b": 140
},
"hsl": {
"h": 243.061,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.36052,
"c": 0.15602,
"h": 277.4
},
"luminance": 0.04154
}Semantic roles & 50–950 ramp
primary
#2F2A8C
secondary
#B1B55C
accent
#DD4BD6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F