#2F4AB4#2F4AB4
#2F4AB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.171 H 268.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AB4 |
|---|---|
| RGB | rgb(47, 74, 180) |
| HSL | hsl(228, 59%, 45%) |
| HSV | hsv(228, 74%, 71%) |
| CMYK | cmyk(73.9%, 58.9%, 0%, 29.4%) |
| CIE-LAB | lab(35.59, 27.46, -59.19) |
| CIE-LCH | lch(35.59, 65.25, 294.89°) |
| OKLab | oklab(45.52% -0.0061 -0.1708) |
| OKLCH | oklch(45.52% 0.171 268) |
| XYZ | xyz(11.8564, 8.7959, 44.2441) |
| Luminance | 0.0880 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.55
Cobalt
#0047AB
ΔE00 3.61
Sapphire
#0F52BA
ΔE00 4.16
Sapphire (survey)
#2138AB
ΔE00 5.44
Blue (survey)
#0343DF
ΔE00 5.67
Ocean Blue
#4F42B5
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AB4 #B4992F
analogous
#2F8CB4 #2F4AB4 #572FB4
triadic
#2F4AB4 #B42F4A #4AB42F
tetradic
#2F4AB4 #B42F8C #B4992F #2FB457
square
#2F4AB4 #B42F8C #B4992F #2FB457
split-complementary
#2F4AB4 #B4572F #8CB42F
monochromatic
#162253 #223683 #2F4AB4 #4F6AD1 #8093DE
Accessibility & contrast
On white
7.61
#2F4AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#2F4AB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AB4
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AB4 | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ab4; /* rgb */ color: rgb(47, 74, 180); /* oklch */ color: oklch(45.5% 0.171 268.0);
Tailwind
colors: {
custom: {
50: '#7a7ccb',
500: '#2f4ab4',
950: '#000000',
},
}SCSS
$custom: #2f4ab4; $custom-light: #7a7ccb; $custom-dark: #000000;
JSON
{
"hex": "#2f4ab4",
"rgb": {
"r": 47,
"g": 74,
"b": 180
},
"hsl": {
"h": 227.82,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.45515,
"c": 0.17092,
"h": 268
},
"luminance": 0.08797
}Semantic roles & 50–950 ramp
primary
#2F4AB4
secondary
#C7B778
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82