#2F51B3#2F51B3
#2F51B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.161 H 265.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51B3 |
|---|---|
| RGB | rgb(47, 81, 179) |
| HSL | hsl(225, 58%, 44%) |
| HSV | hsv(225, 74%, 70%) |
| CMYK | cmyk(73.7%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.38, 22.48, -55.69) |
| CIE-LCH | lch(37.38, 60.06, 291.98°) |
| OKLab | oklab(46.83% -0.0115 -0.1604) |
| OKLCH | oklch(46.83% 0.161 265.9) |
| XYZ | xyz(12.2485, 9.7426, 43.8741) |
| Luminance | 0.0974 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.43
Cobalt
#0047AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 5.57
Denim Blue
#3B5B92
ΔE00 5.67
Cobalt (survey)
#1E488F
ΔE00 5.86
Dusk Blue
#26538D
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51B3 #B3912F
analogous
#2F93B3 #2F51B3 #4F2FB3
triadic
#2F51B3 #B32F51 #51B32F
tetradic
#2F51B3 #B32F93 #B3912F #2FB34F
square
#2F51B3 #B32F93 #B3912F #2FB34F
split-complementary
#2F51B3 #B34F2F #93B32F
monochromatic
#162552 #223B83 #2F51B3 #4F70D1 #7F97DD
Accessibility & contrast
On white
7.12
#2F51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#2F51B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51B3
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51B3 | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f51b3; /* rgb */ color: rgb(47, 81, 179); /* oklch */ color: oklch(46.8% 0.161 265.9);
Tailwind
colors: {
custom: {
50: '#7a81ca',
500: '#2f51b3',
950: '#000000',
},
}SCSS
$custom: #2f51b3; $custom-light: #7a81ca; $custom-dark: #000000;
JSON
{
"hex": "#2f51b3",
"rgb": {
"r": 47,
"g": 81,
"b": 179
},
"hsl": {
"h": 224.545,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.46833,
"c": 0.16084,
"h": 265.9
},
"luminance": 0.09744
}Semantic roles & 50–950 ramp
primary
#2F51B3
secondary
#C6B278
accent
#BA46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82