#2F4DB7#2F4DB7
#2F4DB7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.171 H 267.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4DB7 |
|---|---|
| RGB | rgb(47, 77, 183) |
| HSL | hsl(227, 59%, 45%) |
| HSV | hsv(227, 74%, 72%) |
| CMYK | cmyk(74.3%, 57.9%, 0%, 28.2%) |
| CIE-LAB | lab(36.61, 26.61, -59.30) |
| CIE-LCH | lch(36.61, 64.99, 294.17°) |
| OKLab | oklab(46.35% -0.0082 -0.1711) |
| OKLCH | oklch(46.35% 0.171 267.2) |
| XYZ | xyz(12.3704, 9.3297, 45.9394) |
| Luminance | 0.0933 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.40
Cobalt
#0047AB
ΔE00 3.85
Blue Blue
#2242C7
ΔE00 4.04
Blue (survey)
#0343DF
ΔE00 5.71
Cobalt (survey)
#1E488F
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4DB7 #B7992F
analogous
#2F91B7 #2F4DB7 #552FB7
triadic
#2F4DB7 #B72F4D #4DB72F
tetradic
#2F4DB7 #B72F91 #B7992F #2FB755
square
#2F4DB7 #B72F91 #B7992F #2FB755
split-complementary
#2F4DB7 #B7552F #91B72F
monochromatic
#162456 #223986 #2F4DB7 #516DD2 #8296DF
Accessibility & contrast
On white
7.33
#2F4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#2F4DB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4DB7
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4DB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4DB7 | 1.00 | 7.33 | 2.87 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4db7; /* rgb */ color: rgb(47, 77, 183); /* oklch */ color: oklch(46.4% 0.171 267.2);
Tailwind
colors: {
custom: {
50: '#7b7ecd',
500: '#2f4db7',
950: '#000000',
},
}SCSS
$custom: #2f4db7; $custom-light: #7b7ecd; $custom-dark: #000000;
JSON
{
"hex": "#2f4db7",
"rgb": {
"r": 47,
"g": 77,
"b": 183
},
"hsl": {
"h": 226.765,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.46354,
"c": 0.17128,
"h": 267.2
},
"luminance": 0.09331
}Semantic roles & 50–950 ramp
primary
#2F4DB7
secondary
#C8B77A
accent
#C045E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82