#2F4AB5#2F4AB5
#2F4AB5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AB5 |
|---|---|
| RGB | rgb(47, 74, 181) |
| HSL | hsl(228, 59%, 45%) |
| HSV | hsv(228, 74%, 71%) |
| CMYK | cmyk(74%, 59.1%, 0%, 29%) |
| CIE-LAB | lab(35.67, 27.84, -59.65) |
| CIE-LCH | lch(35.67, 65.83, 295.02°) |
| OKLab | oklab(45.6% -0.0061 -0.1722) |
| OKLCH | oklch(45.6% 0.172 268) |
| XYZ | xyz(11.9587, 8.8368, 44.7825) |
| Luminance | 0.0884 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.44
Cobalt
#0047AB
ΔE00 3.69
Sapphire
#0F52BA
ΔE00 4.18
Sapphire (survey)
#2138AB
ΔE00 5.45
Blue (survey)
#0343DF
ΔE00 5.54
Ocean Blue
#4F42B5
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AB5 #B59A2F
analogous
#2F8DB5 #2F4AB5 #572FB5
triadic
#2F4AB5 #B52F4A #4AB52F
tetradic
#2F4AB5 #B52F8D #B59A2F #2FB557
square
#2F4AB5 #B52F8D #B59A2F #2FB557
split-complementary
#2F4AB5 #B5572F #8DB52F
monochromatic
#162254 #223684 #2F4AB5 #506AD1 #8093DE
Accessibility & contrast
On white
7.59
#2F4AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#2F4AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AB5
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AB5 | 1.00 | 7.59 | 2.77 | 7.59 |
| #FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ab5; /* rgb */ color: rgb(47, 74, 181); /* oklch */ color: oklch(45.6% 0.172 268.0);
Tailwind
colors: {
custom: {
50: '#7b7ccc',
500: '#2f4ab5',
950: '#000000',
},
}SCSS
$custom: #2f4ab5; $custom-light: #7b7ccc; $custom-dark: #000000;
JSON
{
"hex": "#2f4ab5",
"rgb": {
"r": 47,
"g": 74,
"b": 181
},
"hsl": {
"h": 227.91,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.456,
"c": 0.17228,
"h": 268
},
"luminance": 0.08838
}Semantic roles & 50–950 ramp
primary
#2F4AB5
secondary
#C7B779
accent
#C346E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82