#2F51BA#2F51BA
#2F51BA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.170 H 266.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51BA |
|---|---|
| RGB | rgb(47, 81, 186) |
| HSL | hsl(225, 60%, 46%) |
| HSV | hsv(225, 75%, 73%) |
| CMYK | cmyk(74.7%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.90, 25.11, -58.96) |
| CIE-LCH | lch(37.90, 64.09, 293.07°) |
| OKLab | oklab(47.39% -0.0111 -0.17) |
| OKLCH | oklch(47.39% 0.17 266.3) |
| XYZ | xyz(12.9745, 10.0330, 47.6976) |
| Luminance | 0.1003 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.62
Cobalt
#0047AB
ΔE00 4.46
Blue Blue
#2242C7
ΔE00 5.03
Blue (survey)
#0343DF
ΔE00 6.15
Warm Blue
#4B57DB
ΔE00 6.26
Denim Blue
#3B5B92
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51BA #BA982F
analogous
#2F96BA #2F51BA #522FBA
triadic
#2F51BA #BA2F51 #51BA2F
tetradic
#2F51BA #BA2F96 #BA982F #2FBA52
square
#2F51BA #BA2F96 #BA982F #2FBA52
split-complementary
#2F51BA #BA522F #96BA2F
monochromatic
#162658 #233C89 #2F51BA #5372D3 #849AE0
Accessibility & contrast
On white
6.98
#2F51BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#2F51BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F51BA
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51BA | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2f51ba; /* rgb */ color: rgb(47, 81, 186); /* oklch */ color: oklch(47.4% 0.170 266.3);
Tailwind
colors: {
custom: {
50: '#7b81d0',
500: '#2f51ba',
950: '#000000',
},
}SCSS
$custom: #2f51ba; $custom-light: #7b81d0; $custom-dark: #000000;
JSON
{
"hex": "#2f51ba",
"rgb": {
"r": 47,
"g": 81,
"b": 186
},
"hsl": {
"h": 225.324,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.47394,
"c": 0.1704,
"h": 266.3
},
"luminance": 0.10034
}Semantic roles & 50–950 ramp
primary
#2F51BA
secondary
#C9B67C
accent
#BC45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82