#2F4FA6#2F4FA6
#2F4FA6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.145 H 265.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FA6 |
|---|---|
| RGB | rgb(47, 79, 166) |
| HSL | hsl(224, 56%, 42%) |
| HSV | hsv(224, 72%, 65%) |
| CMYK | cmyk(71.7%, 52.4%, 0%, 34.9%) |
| CIE-LAB | lab(35.88, 18.90, -50.39) |
| CIE-LCH | lch(35.88, 53.82, 290.56°) |
| OKLab | oklab(45.41% -0.011 -0.1449) |
| OKLCH | oklch(45.41% 0.145 265.7) |
| XYZ | xyz(10.8488, 8.9484, 37.2245) |
| Luminance | 0.0895 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.31
Cobalt
#0047AB
ΔE00 3.34
Cobalt (survey)
#1E488F
ΔE00 4.18
Dusk Blue
#26538D
ΔE00 4.80
Denim Blue
#3B5B92
ΔE00 5.03
Light Navy Blue
#2E5A88
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FA6 #A6862F
analogous
#2F8BA6 #2F4FA6 #4B2FA6
triadic
#2F4FA6 #A62F4F #4FA62F
tetradic
#2F4FA6 #A62F8B #A6862F #2FA64B
square
#2F4FA6 #A62F8B #A6862F #2FA64B
split-complementary
#2F4FA6 #A64B2F #8BA62F
monochromatic
#142247 #213876 #2F4FA6 #476BCB #7791D8
Accessibility & contrast
On white
7.53
#2F4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#2F4FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FA6
7.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FA6 | 1.00 | 7.53 | 2.79 | 7.53 |
| #FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4fa6; /* rgb */ color: rgb(47, 79, 166); /* oklch */ color: oklch(45.4% 0.145 265.7);
Tailwind
colors: {
custom: {
50: '#777fc1',
500: '#2f4fa6',
950: '#000000',
},
}SCSS
$custom: #2f4fa6; $custom-light: #777fc1; $custom-dark: #000000;
JSON
{
"hex": "#2f4fa6",
"rgb": {
"r": 47,
"g": 79,
"b": 166
},
"hsl": {
"h": 223.866,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.45406,
"c": 0.14527,
"h": 265.7
},
"luminance": 0.08949
}Semantic roles & 50–950 ramp
primary
#2F4FA6
secondary
#C1AB70
accent
#B749DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81