#2F4EB5#2F4EB5
#2F4EB5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.167 H 266.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB5 |
|---|---|
| RGB | rgb(47, 78, 181) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 71%) |
| CMYK | cmyk(74%, 56.9%, 0%, 29%) |
| CIE-LAB | lab(36.72, 25.21, -57.94) |
| CIE-LCH | lch(36.72, 63.19, 293.51°) |
| OKLab | oklab(46.39% -0.0091 -0.1671) |
| OKLCH | oklch(46.39% 0.167 266.9) |
| XYZ | xyz(12.2343, 9.3880, 44.8744) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.10
Cobalt
#0047AB
ΔE00 3.74
Blue Blue
#2242C7
ΔE00 4.51
Cobalt (survey)
#1E488F
ΔE00 6.05
Blue (survey)
#0343DF
ΔE00 6.13
Denim Blue
#3B5B92
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB5 #B5962F
analogous
#2F91B5 #2F4EB5 #532FB5
triadic
#2F4EB5 #B52F4E #4EB52F
tetradic
#2F4EB5 #B52F91 #B5962F #2FB553
square
#2F4EB5 #B52F91 #B5962F #2FB553
split-complementary
#2F4EB5 #B5532F #91B52F
monochromatic
#162454 #223984 #2F4EB5 #506ED1 #8096DE
Accessibility & contrast
On white
7.30
#2F4EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#2F4EB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB5
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB5 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4eb5; /* rgb */ color: rgb(47, 78, 181); /* oklch */ color: oklch(46.4% 0.167 266.9);
Tailwind
colors: {
custom: {
50: '#7a7fcc',
500: '#2f4eb5',
950: '#000000',
},
}SCSS
$custom: #2f4eb5; $custom-light: #7a7fcc; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb5",
"rgb": {
"r": 47,
"g": 78,
"b": 181
},
"hsl": {
"h": 226.119,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.46387,
"c": 0.16732,
"h": 266.9
},
"luminance": 0.09389
}Semantic roles & 50–950 ramp
primary
#2F4EB5
secondary
#C7B579
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82