#2F307E#2F307E
#2F307E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.129 H 277.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307E |
|---|---|
| RGB | rgb(47, 48, 126) |
| HSL | hsl(239, 46%, 34%) |
| HSV | hsv(239, 63%, 49%) |
| CMYK | cmyk(62.7%, 61.9%, 0%, 50.6%) |
| CIE-LAB | lab(24.40, 24.89, -44.48) |
| CIE-LCH | lch(24.40, 50.97, 299.23°) |
| OKLab | oklab(35.83% 0.016 -0.1279) |
| OKLCH | oklch(35.83% 0.129 277.1) |
| XYZ | xyz(5.9939, 4.2241, 20.2341) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.18
Blueberry
#464196
ΔE00 6.15
Midnight Blue
#191970
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 7.11
Royal
#0C1793
ΔE00 7.83
Marine
#042E60
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307E #7E7D2F
analogous
#2F587E #2F307E #562F7E
triadic
#2F307E #7E2F30 #307E2F
tetradic
#2F307E #7E2F58 #7E7D2F #2F7E56
square
#2F307E #7E2F58 #7E7D2F #2F7E56
split-complementary
#2F307E #7E562F #587E2F
monochromatic
#0E0E25 #1E1F51 #2F307E #4041AB #6364C5
Accessibility & contrast
On white
11.38
#2F307E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2F307E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307E
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307E | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f307e; /* rgb */ color: rgb(47, 48, 126); /* oklch */ color: oklch(35.8% 0.129 277.1);
Tailwind
colors: {
custom: {
50: '#7168a4',
500: '#2f307e',
950: '#000000',
},
}SCSS
$custom: #2f307e; $custom-light: #7168a4; $custom-dark: #000000;
JSON
{
"hex": "#2f307e",
"rgb": {
"r": 47,
"g": 48,
"b": 126
},
"hsl": {
"h": 239.241,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.35833,
"c": 0.12887,
"h": 277.1
},
"luminance": 0.04225
}Semantic roles & 50–950 ramp
primary
#2F307E
secondary
#ACAB5D
accent
#D452D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F