#2F4DB4#2F4DB4
#2F4DB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.167 H 267.1°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4DB4 |
|---|---|
| RGB | rgb(47, 77, 180) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 71%) |
| CMYK | cmyk(73.9%, 57.2%, 0%, 29.4%) |
| CIE-LAB | lab(36.38, 25.49, -57.91) |
| CIE-LCH | lch(36.38, 63.27, 293.76°) |
| OKLab | oklab(46.11% -0.0083 -0.167) |
| OKLCH | oklch(46.11% 0.167 267.1) |
| XYZ | xyz(12.0615, 9.2061, 44.3125) |
| Luminance | 0.0921 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.33
Cobalt
#0047AB
ΔE00 3.60
Blue Blue
#2242C7
ΔE00 4.32
Cobalt (survey)
#1E488F
ΔE00 5.93
Blue (survey)
#0343DF
ΔE00 6.08
Sapphire (survey)
#2138AB
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4DB4 #B4962F
analogous
#2F90B4 #2F4DB4 #542FB4
triadic
#2F4DB4 #B42F4D #4DB42F
tetradic
#2F4DB4 #B42F90 #B4962F #2FB454
square
#2F4DB4 #B42F90 #B4962F #2FB454
split-complementary
#2F4DB4 #B4542F #90B42F
monochromatic
#162353 #223883 #2F4DB4 #4F6CD1 #8095DE
Accessibility & contrast
On white
7.39
#2F4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#2F4DB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4DB4
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4DB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4DB4 | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4db4; /* rgb */ color: rgb(47, 77, 180); /* oklch */ color: oklch(46.1% 0.167 267.1);
Tailwind
colors: {
custom: {
50: '#7a7ecb',
500: '#2f4db4',
950: '#000000',
},
}SCSS
$custom: #2f4db4; $custom-light: #7a7ecb; $custom-dark: #000000;
JSON
{
"hex": "#2f4db4",
"rgb": {
"r": 47,
"g": 77,
"b": 180
},
"hsl": {
"h": 226.466,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.46106,
"c": 0.16721,
"h": 267.1
},
"luminance": 0.09207
}Semantic roles & 50–950 ramp
primary
#2F4DB4
secondary
#C7B578
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82