#2F51B5#2F51B5
#2F51B5 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.164 H 266.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51B5 |
|---|---|
| RGB | rgb(47, 81, 181) |
| HSL | hsl(225, 59%, 45%) |
| HSV | hsv(225, 74%, 71%) |
| CMYK | cmyk(74%, 55.2%, 0%, 29%) |
| CIE-LAB | lab(37.52, 23.23, -56.63) |
| CIE-LCH | lch(37.52, 61.21, 292.31°) |
| OKLab | oklab(46.99% -0.0114 -0.1632) |
| OKLCH | oklch(46.99% 0.164 266) |
| XYZ | xyz(12.4523, 9.8241, 44.9471) |
| Luminance | 0.0983 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.45
Cobalt
#0047AB
ΔE00 4.10
Blue Blue
#2242C7
ΔE00 5.40
Denim Blue
#3B5B92
ΔE00 5.88
Cobalt (survey)
#1E488F
ΔE00 6.11
Dusk Blue
#26538D
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51B5 #B5932F
analogous
#2F94B5 #2F51B5 #502FB5
triadic
#2F51B5 #B52F51 #51B52F
tetradic
#2F51B5 #B52F94 #B5932F #2FB550
square
#2F51B5 #B52F94 #B5932F #2FB550
split-complementary
#2F51B5 #B5502F #94B52F
monochromatic
#162654 #223B84 #2F51B5 #5071D1 #8098DE
Accessibility & contrast
On white
7.08
#2F51B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2F51B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51B5
7.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51B5 | 1.00 | 7.08 | 2.97 | 7.08 |
| #FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f51b5; /* rgb */ color: rgb(47, 81, 181); /* oklch */ color: oklch(47.0% 0.164 266.0);
Tailwind
colors: {
custom: {
50: '#7a81cc',
500: '#2f51b5',
950: '#000000',
},
}SCSS
$custom: #2f51b5; $custom-light: #7a81cc; $custom-dark: #000000;
JSON
{
"hex": "#2f51b5",
"rgb": {
"r": 47,
"g": 81,
"b": 181
},
"hsl": {
"h": 224.776,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.46992,
"c": 0.16358,
"h": 266
},
"luminance": 0.09825
}Semantic roles & 50–950 ramp
primary
#2F51B5
secondary
#C7B379
accent
#BA46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82