#2F4FB7#2F4FB7
#2F4FB7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.169 H 266.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FB7 |
|---|---|
| RGB | rgb(47, 79, 183) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 72%) |
| CMYK | cmyk(74.3%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(37.14, 25.30, -58.44) |
| CIE-LCH | lch(37.14, 63.68, 293.41°) |
| OKLab | oklab(46.75% -0.0097 -0.1685) |
| OKLCH | oklch(46.75% 0.169 266.7) |
| XYZ | xyz(12.5125, 9.6138, 45.9868) |
| Luminance | 0.0961 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.91
Cobalt
#0047AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 4.63
Blue (survey)
#0343DF
ΔE00 6.07
Cobalt (survey)
#1E488F
ΔE00 6.30
Denim Blue
#3B5B92
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FB7 #B7972F
analogous
#2F93B7 #2F4FB7 #532FB7
triadic
#2F4FB7 #B72F4F #4FB72F
tetradic
#2F4FB7 #B72F93 #B7972F #2FB753
square
#2F4FB7 #B72F93 #B7972F #2FB753
split-complementary
#2F4FB7 #B7532F #93B72F
monochromatic
#162556 #223A86 #2F4FB7 #516FD2 #8298DF
Accessibility & contrast
On white
7.18
#2F4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#2F4FB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FB7
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FB7 | 1.00 | 7.18 | 2.92 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4fb7; /* rgb */ color: rgb(47, 79, 183); /* oklch */ color: oklch(46.8% 0.169 266.7);
Tailwind
colors: {
custom: {
50: '#7b7fcd',
500: '#2f4fb7',
950: '#000000',
},
}SCSS
$custom: #2f4fb7; $custom-light: #7b7fcd; $custom-dark: #000000;
JSON
{
"hex": "#2f4fb7",
"rgb": {
"r": 47,
"g": 79,
"b": 183
},
"hsl": {
"h": 225.882,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.4675,
"c": 0.1688,
"h": 266.7
},
"luminance": 0.09615
}Semantic roles & 50–950 ramp
primary
#2F4FB7
secondary
#C8B67A
accent
#BD45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82