#2F307C#2F307C
#2F307C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.126 H 277.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307C |
|---|---|
| RGB | rgb(47, 48, 124) |
| HSL | hsl(239, 45%, 34%) |
| HSV | hsv(239, 62%, 49%) |
| CMYK | cmyk(62.1%, 61.3%, 0%, 51.4%) |
| CIE-LAB | lab(24.24, 24.17, -43.48) |
| CIE-LCH | lch(24.24, 49.75, 299.07°) |
| OKLab | oklab(35.66% 0.0161 -0.1249) |
| OKLCH | oklch(35.66% 0.126 277.3) |
| XYZ | xyz(5.8662, 4.1730, 19.5612) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.26
Blueberry
#464196
ΔE00 6.31
Midnight Blue
#191970
ΔE00 6.48
Sapphire (survey)
#2138AB
ΔE00 7.43
Marine
#042E60
ΔE00 7.93
Royal
#0C1793
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307C #7C7B2F
analogous
#2F567C #2F307C #542F7C
triadic
#2F307C #7C2F30 #307C2F
tetradic
#2F307C #7C2F56 #7C7B2F #2F7C54
square
#2F307C #7C2F56 #7C7B2F #2F7C54
split-complementary
#2F307C #7C542F #567C2F
monochromatic
#0D0E23 #1E1F50 #2F307C #4041A8 #6263C3
Accessibility & contrast
On white
11.45
#2F307C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F307C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307C
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307C | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f307c; /* rgb */ color: rgb(47, 48, 124); /* oklch */ color: oklch(35.7% 0.126 277.3);
Tailwind
colors: {
custom: {
50: '#7068a3',
500: '#2f307c',
950: '#000000',
},
}SCSS
$custom: #2f307c; $custom-light: #7068a3; $custom-dark: #000000;
JSON
{
"hex": "#2f307c",
"rgb": {
"r": 47,
"g": 48,
"b": 124
},
"hsl": {
"h": 239.221,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.35661,
"c": 0.12597,
"h": 277.3
},
"luminance": 0.04173
}Semantic roles & 50–950 ramp
primary
#2F307C
secondary
#AAA95C
accent
#D353D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F