#2F4FB8#2F4FB8
#2F4FB8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.170 H 266.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FB8 |
|---|---|
| RGB | rgb(47, 79, 184) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 72%) |
| CMYK | cmyk(74.5%, 57.1%, 0%, 27.8%) |
| CIE-LAB | lab(37.22, 25.68, -58.90) |
| CIE-LCH | lch(37.22, 64.25, 293.55°) |
| OKLab | oklab(46.83% -0.0097 -0.1699) |
| OKLCH | oklch(46.83% 0.17 266.7) |
| XYZ | xyz(12.6170, 9.6556, 46.5369) |
| Luminance | 0.0966 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.94
Cobalt
#0047AB
ΔE00 4.06
Blue Blue
#2242C7
ΔE00 4.55
Blue (survey)
#0343DF
ΔE00 5.95
Cobalt (survey)
#1E488F
ΔE00 6.43
Warm Blue
#4B57DB
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FB8 #B8982F
analogous
#2F94B8 #2F4FB8 #532FB8
triadic
#2F4FB8 #B82F4F #4FB82F
tetradic
#2F4FB8 #B82F94 #B8982F #2FB853
square
#2F4FB8 #B82F94 #B8982F #2FB853
split-complementary
#2F4FB8 #B8532F #94B82F
monochromatic
#162557 #233A87 #2F4FB8 #5270D3 #8298DF
Accessibility & contrast
On white
7.16
#2F4FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2F4FB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FB8
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FB8 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f4fb8; /* rgb */ color: rgb(47, 79, 184); /* oklch */ color: oklch(46.8% 0.170 266.7);
Tailwind
colors: {
custom: {
50: '#7b7fce',
500: '#2f4fb8',
950: '#000000',
},
}SCSS
$custom: #2f4fb8; $custom-light: #7b7fce; $custom-dark: #000000;
JSON
{
"hex": "#2f4fb8",
"rgb": {
"r": 47,
"g": 79,
"b": 184
},
"hsl": {
"h": 225.985,
"s": 59.307,
"l": 45.294
},
"oklch": {
"l": 0.46832,
"c": 0.17015,
"h": 266.7
},
"luminance": 0.09657
}Semantic roles & 50–950 ramp
primary
#2F4FB8
secondary
#C8B67B
accent
#BE45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82