#2F48B5#2F48B5
#2F48B5 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.175 H 268.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2F48B5 |
|---|---|
| RGB | rgb(47, 72, 181) |
| HSL | hsl(229, 59%, 45%) |
| HSV | hsv(229, 74%, 71%) |
| CMYK | cmyk(74%, 60.2%, 0%, 29%) |
| CIE-LAB | lab(35.15, 29.15, -60.50) |
| CIE-LCH | lch(35.15, 67.15, 295.72°) |
| OKLab | oklab(45.22% -0.0046 -0.1747) |
| OKLCH | oklch(45.22% 0.175 268.5) |
| XYZ | xyz(11.8273, 8.5740, 44.7387) |
| Luminance | 0.0858 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.00
Cobalt
#0047AB
ΔE00 3.85
Sapphire
#0F52BA
ΔE00 4.76
Sapphire (survey)
#2138AB
ΔE00 4.84
Ocean Blue
#4F42B5
ΔE00 5.32
Blue (survey)
#0343DF
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F48B5 #B59C2F
analogous
#2F8BB5 #2F48B5 #592FB5
triadic
#2F48B5 #B52F48 #48B52F
tetradic
#2F48B5 #B52F8B #B59C2F #2FB559
square
#2F48B5 #B52F8B #B59C2F #2FB559
split-complementary
#2F48B5 #B5592F #8BB52F
monochromatic
#162154 #223584 #2F48B5 #5068D1 #8092DE
Accessibility & contrast
On white
7.73
#2F48B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#2F48B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F48B5
7.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F48B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F48B5 | 1.00 | 7.73 | 2.72 | 7.73 |
| #FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f48b5; /* rgb */ color: rgb(47, 72, 181); /* oklch */ color: oklch(45.2% 0.175 268.5);
Tailwind
colors: {
custom: {
50: '#7b7acc',
500: '#2f48b5',
950: '#000000',
},
}SCSS
$custom: #2f48b5; $custom-light: #7b7acc; $custom-dark: #000000;
JSON
{
"hex": "#2f48b5",
"rgb": {
"r": 47,
"g": 72,
"b": 181
},
"hsl": {
"h": 228.806,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.45215,
"c": 0.17473,
"h": 268.5
},
"luminance": 0.08575
}Semantic roles & 50–950 ramp
primary
#2F48B5
secondary
#C7B879
accent
#C546E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82