#2F4DB8#2F4DB8
#2F4DB8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.173 H 267.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4DB8 |
|---|---|
| RGB | rgb(47, 77, 184) |
| HSL | hsl(227, 59%, 45%) |
| HSV | hsv(227, 74%, 72%) |
| CMYK | cmyk(74.5%, 58.2%, 0%, 27.8%) |
| CIE-LAB | lab(36.69, 26.99, -59.76) |
| CIE-LCH | lch(36.69, 65.57, 294.31°) |
| OKLab | oklab(46.44% -0.0082 -0.1724) |
| OKLCH | oklch(46.44% 0.173 267.3) |
| XYZ | xyz(12.4749, 9.3714, 46.4895) |
| Luminance | 0.0937 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.43
Cobalt
#0047AB
ΔE00 3.94
Blue Blue
#2242C7
ΔE00 3.96
Blue (survey)
#0343DF
ΔE00 5.59
Ocean Blue
#4F42B5
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4DB8 #B89A2F
analogous
#2F92B8 #2F4DB8 #552FB8
triadic
#2F4DB8 #B82F4D #4DB82F
tetradic
#2F4DB8 #B82F92 #B89A2F #2FB855
square
#2F4DB8 #B82F92 #B89A2F #2FB855
split-complementary
#2F4DB8 #B8552F #92B82F
monochromatic
#162457 #233987 #2F4DB8 #526ED3 #8297DF
Accessibility & contrast
On white
7.31
#2F4DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#2F4DB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4DB8
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4DB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4DB8 | 1.00 | 7.31 | 2.87 | 7.31 |
| #FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4db8; /* rgb */ color: rgb(47, 77, 184); /* oklch */ color: oklch(46.4% 0.173 267.3);
Tailwind
colors: {
custom: {
50: '#7b7ece',
500: '#2f4db8',
950: '#000000',
},
}SCSS
$custom: #2f4db8; $custom-light: #7b7ece; $custom-dark: #000000;
JSON
{
"hex": "#2f4db8",
"rgb": {
"r": 47,
"g": 77,
"b": 184
},
"hsl": {
"h": 226.861,
"s": 59.307,
"l": 45.294
},
"oklch": {
"l": 0.46437,
"c": 0.17262,
"h": 267.3
},
"luminance": 0.09373
}Semantic roles & 50–950 ramp
primary
#2F4DB8
secondary
#C8B77B
accent
#C045E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82