#2F50B5#2F50B5
#2F50B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.165 H 266.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F50B5 |
|---|---|
| RGB | rgb(47, 80, 181) |
| HSL | hsl(225, 59%, 45%) |
| HSV | hsv(225, 74%, 71%) |
| CMYK | cmyk(74%, 55.8%, 0%, 29%) |
| CIE-LAB | lab(37.26, 23.89, -57.07) |
| CIE-LCH | lch(37.26, 61.87, 292.72°) |
| OKLab | oklab(46.79% -0.0106 -0.1645) |
| OKLCH | oklch(46.79% 0.165 266.3) |
| XYZ | xyz(12.3785, 9.6765, 44.9225) |
| Luminance | 0.0968 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.64
Cobalt
#0047AB
ΔE00 3.95
Blue Blue
#2242C7
ΔE00 5.10
Cobalt (survey)
#1E488F
ΔE00 6.07
Denim Blue
#3B5B92
ΔE00 6.11
Dusk Blue
#26538D
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F50B5 #B5942F
analogous
#2F93B5 #2F50B5 #512FB5
triadic
#2F50B5 #B52F50 #50B52F
tetradic
#2F50B5 #B52F93 #B5942F #2FB551
square
#2F50B5 #B52F93 #B5942F #2FB551
split-complementary
#2F50B5 #B5512F #93B52F
monochromatic
#162554 #223B84 #2F50B5 #5070D1 #8097DE
Accessibility & contrast
On white
7.15
#2F50B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#2F50B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F50B5
7.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F50B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F50B5 | 1.00 | 7.15 | 2.94 | 7.15 |
| #FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f50b5; /* rgb */ color: rgb(47, 80, 181); /* oklch */ color: oklch(46.8% 0.165 266.3);
Tailwind
colors: {
custom: {
50: '#7a80cc',
500: '#2f50b5',
950: '#000000',
},
}SCSS
$custom: #2f50b5; $custom-light: #7a80cc; $custom-dark: #000000;
JSON
{
"hex": "#2f50b5",
"rgb": {
"r": 47,
"g": 80,
"b": 181
},
"hsl": {
"h": 225.224,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.46789,
"c": 0.16483,
"h": 266.3
},
"luminance": 0.09678
}Semantic roles & 50–950 ramp
primary
#2F50B5
secondary
#C7B479
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82