#2F4FA7#2F4FA7
#2F4FA7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.147 H 265.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FA7 |
|---|---|
| RGB | rgb(47, 79, 167) |
| HSL | hsl(224, 56%, 42%) |
| HSV | hsv(224, 72%, 65%) |
| CMYK | cmyk(71.9%, 52.7%, 0%, 34.5%) |
| CIE-LAB | lab(35.96, 19.28, -50.87) |
| CIE-LCH | lch(35.96, 54.40, 290.75°) |
| OKLab | oklab(45.48% -0.0109 -0.1463) |
| OKLCH | oklch(45.48% 0.147 265.8) |
| XYZ | xyz(10.9409, 8.9852, 37.7094) |
| Luminance | 0.0899 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.24
Cobalt
#0047AB
ΔE00 3.33
Cobalt (survey)
#1E488F
ΔE00 4.30
Dusk Blue
#26538D
ΔE00 4.91
Denim Blue
#3B5B92
ΔE00 5.11
Blue Blue
#2242C7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FA7 #A7872F
analogous
#2F8BA7 #2F4FA7 #4B2FA7
triadic
#2F4FA7 #A72F4F #4FA72F
tetradic
#2F4FA7 #A72F8B #A7872F #2FA74B
square
#2F4FA7 #A72F8B #A7872F #2FA74B
split-complementary
#2F4FA7 #A74B2F #8BA72F
monochromatic
#142247 #223877 #2F4FA7 #486BCB #7891D9
Accessibility & contrast
On white
7.51
#2F4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#2F4FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FA7
7.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FA7 | 1.00 | 7.51 | 2.80 | 7.51 |
| #FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2f4fa7; /* rgb */ color: rgb(47, 79, 167); /* oklch */ color: oklch(45.5% 0.147 265.8);
Tailwind
colors: {
custom: {
50: '#777fc2',
500: '#2f4fa7',
950: '#000000',
},
}SCSS
$custom: #2f4fa7; $custom-light: #777fc2; $custom-dark: #000000;
JSON
{
"hex": "#2f4fa7",
"rgb": {
"r": 47,
"g": 79,
"b": 167
},
"hsl": {
"h": 224,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.45482,
"c": 0.14668,
"h": 265.8
},
"luminance": 0.08986
}Semantic roles & 50–950 ramp
primary
#2F4FA7
secondary
#C1AC71
accent
#B748DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81