#2F51B2#2F51B2
#2F51B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.159 H 265.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51B2 |
|---|---|
| RGB | rgb(47, 81, 178) |
| HSL | hsl(224, 58%, 44%) |
| HSV | hsv(224, 74%, 70%) |
| CMYK | cmyk(73.6%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(37.30, 22.11, -55.22) |
| CIE-LCH | lch(37.30, 59.48, 291.82°) |
| OKLab | oklab(46.75% -0.0116 -0.159) |
| OKLCH | oklch(46.75% 0.159 265.8) |
| XYZ | xyz(12.1478, 9.7023, 43.3434) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.43
Cobalt
#0047AB
ΔE00 3.93
Denim Blue
#3B5B92
ΔE00 5.57
Blue Blue
#2242C7
ΔE00 5.66
Cobalt (survey)
#1E488F
ΔE00 5.74
Dusk Blue
#26538D
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51B2 #B2902F
analogous
#2F93B2 #2F51B2 #4E2FB2
triadic
#2F51B2 #B22F51 #51B22F
tetradic
#2F51B2 #B22F93 #B2902F #2FB24E
square
#2F51B2 #B22F93 #B2902F #2FB24E
split-complementary
#2F51B2 #B24E2F #93B22F
monochromatic
#152551 #223B82 #2F51B2 #4E70D0 #7E97DD
Accessibility & contrast
On white
7.14
#2F51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#2F51B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51B2
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51B2 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f51b2; /* rgb */ color: rgb(47, 81, 178); /* oklch */ color: oklch(46.8% 0.159 265.8);
Tailwind
colors: {
custom: {
50: '#7a81ca',
500: '#2f51b2',
950: '#000000',
},
}SCSS
$custom: #2f51b2; $custom-light: #7a81ca; $custom-dark: #000000;
JSON
{
"hex": "#2f51b2",
"rgb": {
"r": 47,
"g": 81,
"b": 178
},
"hsl": {
"h": 224.427,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.46754,
"c": 0.15947,
"h": 265.8
},
"luminance": 0.09704
}Semantic roles & 50–950 ramp
primary
#2F51B2
secondary
#C6B177
accent
#B946E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82