#2F307B#2F307B
#2F307B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.125 H 277.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307B |
|---|---|
| RGB | rgb(47, 48, 123) |
| HSL | hsl(239, 45%, 33%) |
| HSV | hsv(239, 62%, 48%) |
| CMYK | cmyk(61.8%, 61%, 0%, 51.8%) |
| CIE-LAB | lab(24.15, 23.81, -42.98) |
| CIE-LCH | lch(24.15, 49.13, 298.98°) |
| OKLab | oklab(35.58% 0.0161 -0.1235) |
| OKLCH | oklch(35.58% 0.125 277.4) |
| XYZ | xyz(5.8032, 4.1479, 19.2299) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.31
Blueberry
#464196
ΔE00 6.40
Midnight Blue
#191970
ΔE00 6.49
Sapphire (survey)
#2138AB
ΔE00 7.59
Marine
#042E60
ΔE00 7.84
Royal
#0C1793
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307B #7B7A2F
analogous
#2F567B #2F307B #542F7B
triadic
#2F307B #7B2F30 #307B2F
tetradic
#2F307B #7B2F56 #7B7A2F #2F7B54
square
#2F307B #7B2F56 #7B7A2F #2F7B54
split-complementary
#2F307B #7B542F #567B2F
monochromatic
#0D0D22 #1E1F4F #2F307B #4041A7 #6263C3
Accessibility & contrast
On white
11.48
#2F307B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F307B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307B
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307B | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f307b; /* rgb */ color: rgb(47, 48, 123); /* oklch */ color: oklch(35.6% 0.125 277.4);
Tailwind
colors: {
custom: {
50: '#7068a2',
500: '#2f307b',
950: '#000000',
},
}SCSS
$custom: #2f307b; $custom-light: #7068a2; $custom-dark: #000000;
JSON
{
"hex": "#2f307b",
"rgb": {
"r": 47,
"g": 48,
"b": 123
},
"hsl": {
"h": 239.211,
"s": 44.706,
"l": 33.333
},
"oklch": {
"l": 0.35576,
"c": 0.12451,
"h": 277.4
},
"luminance": 0.04148
}Semantic roles & 50–950 ramp
primary
#2F307B
secondary
#AAA95C
accent
#D353D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F