#2F4FB4#2F4FB4
#2F4FB4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.165 H 266.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FB4 |
|---|---|
| RGB | rgb(47, 79, 180) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 71%) |
| CMYK | cmyk(73.9%, 56.1%, 0%, 29.4%) |
| CIE-LAB | lab(36.91, 24.18, -57.04) |
| CIE-LCH | lch(36.91, 61.95, 292.97°) |
| OKLab | oklab(46.51% -0.0099 -0.1644) |
| OKLCH | oklch(46.51% 0.165 266.6) |
| XYZ | xyz(12.2036, 9.4903, 44.3598) |
| Luminance | 0.0949 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.84
Cobalt
#0047AB
ΔE00 3.76
Blue Blue
#2242C7
ΔE00 4.89
Cobalt (survey)
#1E488F
ΔE00 5.92
Denim Blue
#3B5B92
ΔE00 6.26
Dusk Blue
#26538D
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FB4 #B4942F
analogous
#2F92B4 #2F4FB4 #522FB4
triadic
#2F4FB4 #B42F4F #4FB42F
tetradic
#2F4FB4 #B42F92 #B4942F #2FB452
square
#2F4FB4 #B42F92 #B4942F #2FB452
split-complementary
#2F4FB4 #B4522F #92B42F
monochromatic
#162453 #223A83 #2F4FB4 #4F6ED1 #8096DE
Accessibility & contrast
On white
7.25
#2F4FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#2F4FB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FB4
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FB4 | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4fb4; /* rgb */ color: rgb(47, 79, 180); /* oklch */ color: oklch(46.5% 0.165 266.6);
Tailwind
colors: {
custom: {
50: '#7a7fcb',
500: '#2f4fb4',
950: '#000000',
},
}SCSS
$custom: #2f4fb4; $custom-light: #7a7fcb; $custom-dark: #000000;
JSON
{
"hex": "#2f4fb4",
"rgb": {
"r": 47,
"g": 79,
"b": 180
},
"hsl": {
"h": 225.564,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.46507,
"c": 0.16472,
"h": 266.6
},
"luminance": 0.09492
}Semantic roles & 50–950 ramp
primary
#2F4FB4
secondary
#C7B478
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82