#2F4EB4#2F4EB4
#2F4EB4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.166 H 266.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB4 |
|---|---|
| RGB | rgb(47, 78, 180) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 71%) |
| CMYK | cmyk(73.9%, 56.7%, 0%, 29.4%) |
| CIE-LAB | lab(36.64, 24.83, -57.47) |
| CIE-LCH | lch(36.64, 62.61, 293.37°) |
| OKLab | oklab(46.31% -0.0091 -0.1657) |
| OKLCH | oklch(46.31% 0.166 266.9) |
| XYZ | xyz(12.1320, 9.3471, 44.3360) |
| Luminance | 0.0935 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.08
Cobalt
#0047AB
ΔE00 3.67
Blue Blue
#2242C7
ΔE00 4.60
Cobalt (survey)
#1E488F
ΔE00 5.92
Blue (survey)
#0343DF
ΔE00 6.25
Denim Blue
#3B5B92
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB4 #B4952F
analogous
#2F91B4 #2F4EB4 #532FB4
triadic
#2F4EB4 #B42F4E #4EB42F
tetradic
#2F4EB4 #B42F91 #B4952F #2FB453
square
#2F4EB4 #B42F91 #B4952F #2FB453
split-complementary
#2F4EB4 #B4532F #91B42F
monochromatic
#162453 #223983 #2F4EB4 #4F6DD1 #8096DE
Accessibility & contrast
On white
7.32
#2F4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#2F4EB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB4
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB4 | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4eb4; /* rgb */ color: rgb(47, 78, 180); /* oklch */ color: oklch(46.3% 0.166 266.9);
Tailwind
colors: {
custom: {
50: '#7a7fcb',
500: '#2f4eb4',
950: '#000000',
},
}SCSS
$custom: #2f4eb4; $custom-light: #7a7fcb; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb4",
"rgb": {
"r": 47,
"g": 78,
"b": 180
},
"hsl": {
"h": 226.015,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.46306,
"c": 0.16596,
"h": 266.9
},
"luminance": 0.09348
}Semantic roles & 50–950 ramp
primary
#2F4EB4
secondary
#C7B478
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82