#2F307D#2F307D
#2F307D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.127 H 277.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307D |
|---|---|
| RGB | rgb(47, 48, 125) |
| HSL | hsl(239, 45%, 34%) |
| HSV | hsv(239, 62%, 49%) |
| CMYK | cmyk(62.4%, 61.6%, 0%, 51%) |
| CIE-LAB | lab(24.32, 24.52, -43.98) |
| CIE-LCH | lch(24.32, 50.36, 299.15°) |
| OKLab | oklab(35.75% 0.016 -0.1264) |
| OKLCH | oklch(35.75% 0.127 277.2) |
| XYZ | xyz(5.9297, 4.1985, 19.8960) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.22
Blueberry
#464196
ΔE00 6.23
Midnight Blue
#191970
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 7.27
Royal
#0C1793
ΔE00 7.95
Marine
#042E60
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307D #7D7C2F
analogous
#2F577D #2F307D #552F7D
triadic
#2F307D #7D2F30 #307D2F
tetradic
#2F307D #7D2F57 #7D7C2F #2F7D55
square
#2F307D #7D2F57 #7D7C2F #2F7D55
split-complementary
#2F307D #7D552F #577D2F
monochromatic
#0E0E24 #1E1F51 #2F307D #4041A9 #6264C4
Accessibility & contrast
On white
11.41
#2F307D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2F307D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307D
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307D | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f307d; /* rgb */ color: rgb(47, 48, 125); /* oklch */ color: oklch(35.7% 0.127 277.2);
Tailwind
colors: {
custom: {
50: '#7068a3',
500: '#2f307d',
950: '#000000',
},
}SCSS
$custom: #2f307d; $custom-light: #7068a3; $custom-dark: #000000;
JSON
{
"hex": "#2f307d",
"rgb": {
"r": 47,
"g": 48,
"b": 125
},
"hsl": {
"h": 239.231,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.35747,
"c": 0.12742,
"h": 277.2
},
"luminance": 0.04199
}Semantic roles & 50–950 ramp
primary
#2F307D
secondary
#ABAA5D
accent
#D353D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F