#2F4FB9#2F4FB9
#2F4FB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.172 H 266.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FB9 |
|---|---|
| RGB | rgb(47, 79, 185) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 75%, 73%) |
| CMYK | cmyk(74.6%, 57.3%, 0%, 27.5%) |
| CIE-LAB | lab(37.29, 26.05, -59.36) |
| CIE-LCH | lch(37.29, 64.83, 293.69°) |
| OKLab | oklab(46.91% -0.0096 -0.1712) |
| OKLCH | oklch(46.91% 0.172 266.8) |
| XYZ | xyz(12.7222, 9.6977, 47.0909) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.98
Cobalt
#0047AB
ΔE00 4.15
Blue Blue
#2242C7
ΔE00 4.47
Blue (survey)
#0343DF
ΔE00 5.84
Warm Blue
#4B57DB
ΔE00 6.46
Cobalt (survey)
#1E488F
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FB9 #B9992F
analogous
#2F94B9 #2F4FB9 #542FB9
triadic
#2F4FB9 #B92F4F #4FB92F
tetradic
#2F4FB9 #B92F94 #B9992F #2FB954
square
#2F4FB9 #B92F94 #B9992F #2FB954
split-complementary
#2F4FB9 #B9542F #94B92F
monochromatic
#162557 #233A88 #2F4FB9 #5270D3 #8398DF
Accessibility & contrast
On white
7.14
#2F4FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#2F4FB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FB9
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FB9 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f4fb9; /* rgb */ color: rgb(47, 79, 185); /* oklch */ color: oklch(46.9% 0.172 266.8);
Tailwind
colors: {
custom: {
50: '#7b7fcf',
500: '#2f4fb9',
950: '#000000',
},
}SCSS
$custom: #2f4fb9; $custom-light: #7b7fcf; $custom-dark: #000000;
JSON
{
"hex": "#2f4fb9",
"rgb": {
"r": 47,
"g": 79,
"b": 185
},
"hsl": {
"h": 226.087,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.46914,
"c": 0.17151,
"h": 266.8
},
"luminance": 0.09699
}Semantic roles & 50–950 ramp
primary
#2F4FB9
secondary
#C9B77B
accent
#BE45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82