#2F51AB#2F51AB
#2F51AB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.150 H 265.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51AB |
|---|---|
| RGB | rgb(47, 81, 171) |
| HSL | hsl(224, 57%, 43%) |
| HSV | hsv(224, 73%, 67%) |
| CMYK | cmyk(72.5%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(36.80, 19.46, -51.90) |
| CIE-LCH | lch(36.80, 55.43, 290.56°) |
| OKLab | oklab(46.21% -0.0122 -0.1493) |
| OKLCH | oklch(46.21% 0.15 265.3) |
| XYZ | xyz(11.4628, 9.4283, 39.7359) |
| Luminance | 0.0943 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.67
Cobalt
#0047AB
ΔE00 3.71
Denim Blue
#3B5B92
ΔE00 4.90
Cobalt (survey)
#1E488F
ΔE00 4.90
Dusk Blue
#26538D
ΔE00 4.99
Dusky Blue
#475F94
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51AB #AB892F
analogous
#2F8FAB #2F51AB #4B2FAB
triadic
#2F51AB #AB2F51 #51AB2F
tetradic
#2F51AB #AB2F8F #AB892F #2FAB4B
square
#2F51AB #AB2F8F #AB892F #2FAB4B
split-complementary
#2F51AB #AB4B2F #8FAB2F
monochromatic
#15244B #223A7B #2F51AB #4A6ECD #7A94DA
Accessibility & contrast
On white
7.28
#2F51AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#2F51AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F51AB
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51AB | 1.00 | 7.28 | 2.89 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#155DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f51ab; /* rgb */ color: rgb(47, 81, 171); /* oklch */ color: oklch(46.2% 0.150 265.3);
Tailwind
colors: {
custom: {
50: '#7881c5',
500: '#2f51ab',
950: '#000000',
},
}SCSS
$custom: #2f51ab; $custom-light: #7881c5; $custom-dark: #000000;
JSON
{
"hex": "#2f51ab",
"rgb": {
"r": 47,
"g": 81,
"b": 171
},
"hsl": {
"h": 223.548,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.4621,
"c": 0.14976,
"h": 265.3
},
"luminance": 0.09429
}Semantic roles & 50–950 ramp
primary
#2F51AB
secondary
#C3AD73
accent
#B648E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82