#2F307F#2F307F
#2F307F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.130 H 277.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307F |
|---|---|
| RGB | rgb(47, 48, 127) |
| HSL | hsl(239, 46%, 34%) |
| HSV | hsv(239, 63%, 50%) |
| CMYK | cmyk(63%, 62.2%, 0%, 50.2%) |
| CIE-LAB | lab(24.48, 25.24, -44.97) |
| CIE-LCH | lch(24.48, 51.57, 299.31°) |
| OKLab | oklab(35.92% 0.016 -0.1293) |
| OKLCH | oklch(35.92% 0.13 277.1) |
| XYZ | xyz(6.0588, 4.2501, 20.5756) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.15
Blueberry
#464196
ΔE00 6.07
Midnight Blue
#191970
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 6.95
Royal
#0C1793
ΔE00 7.72
Marine
#042E60
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307F #7F7E2F
analogous
#2F587F #2F307F #562F7F
triadic
#2F307F #7F2F30 #307F2F
tetradic
#2F307F #7F2F58 #7F7E2F #2F7F56
square
#2F307F #7F2F58 #7F7E2F #2F7F56
split-complementary
#2F307F #7F562F #587F2F
monochromatic
#0E0E26 #1E1F52 #2F307F #4041AC #6364C5
Accessibility & contrast
On white
11.35
#2F307F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2F307F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307F
11.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307F | 1.00 | 11.35 | 1.85 | 11.35 |
| #FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f307f; /* rgb */ color: rgb(47, 48, 127); /* oklch */ color: oklch(35.9% 0.130 277.1);
Tailwind
colors: {
custom: {
50: '#7168a5',
500: '#2f307f',
950: '#000000',
},
}SCSS
$custom: #2f307f; $custom-light: #7168a5; $custom-dark: #000000;
JSON
{
"hex": "#2f307f",
"rgb": {
"r": 47,
"g": 48,
"b": 127
},
"hsl": {
"h": 239.25,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.3592,
"c": 0.13032,
"h": 277.1
},
"luminance": 0.04251
}Semantic roles & 50–950 ramp
primary
#2F307F
secondary
#ACAB5E
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F