#2F51B7#2F51B7
#2F51B7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.166 H 266.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51B7 |
|---|---|
| RGB | rgb(47, 81, 183) |
| HSL | hsl(225, 59%, 45%) |
| HSV | hsv(225, 74%, 72%) |
| CMYK | cmyk(74.3%, 55.7%, 0%, 28.2%) |
| CIE-LAB | lab(37.67, 23.99, -57.57) |
| CIE-LCH | lch(37.67, 62.36, 292.62°) |
| OKLab | oklab(47.15% -0.0112 -0.1659) |
| OKLCH | oklch(47.15% 0.166 266.1) |
| XYZ | xyz(12.6590, 9.9067, 46.0356) |
| Luminance | 0.0991 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.50
Cobalt
#0047AB
ΔE00 4.23
Blue Blue
#2242C7
ΔE00 5.24
Denim Blue
#3B5B92
ΔE00 6.08
Cobalt (survey)
#1E488F
ΔE00 6.36
Dusk Blue
#26538D
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51B7 #B7952F
analogous
#2F95B7 #2F51B7 #512FB7
triadic
#2F51B7 #B72F51 #51B72F
tetradic
#2F51B7 #B72F95 #B7952F #2FB751
square
#2F51B7 #B72F95 #B7952F #2FB751
split-complementary
#2F51B7 #B7512F #95B72F
monochromatic
#162656 #223B86 #2F51B7 #5171D2 #8299DF
Accessibility & contrast
On white
7.04
#2F51B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2F51B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51B7
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51B7 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2f51b7; /* rgb */ color: rgb(47, 81, 183); /* oklch */ color: oklch(47.2% 0.166 266.1);
Tailwind
colors: {
custom: {
50: '#7b81cd',
500: '#2f51b7',
950: '#000000',
},
}SCSS
$custom: #2f51b7; $custom-light: #7b81cd; $custom-dark: #000000;
JSON
{
"hex": "#2f51b7",
"rgb": {
"r": 47,
"g": 81,
"b": 183
},
"hsl": {
"h": 225,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.47152,
"c": 0.16632,
"h": 266.1
},
"luminance": 0.09908
}Semantic roles & 50–950 ramp
primary
#2F51B7
secondary
#C8B47A
accent
#BB45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82