#2F51D3#2F51D3
#2F51D3 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 49.5% C 0.203 H 267.0°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51D3 |
|---|---|
| RGB | rgb(47, 81, 211) |
| HSL | hsl(228, 65%, 51%) |
| HSV | hsv(228, 78%, 83%) |
| CMYK | cmyk(77.7%, 61.6%, 0%, 17.3%) |
| CIE-LAB | lab(39.90, 34.37, -70.22) |
| CIE-LCH | lch(39.90, 78.19, 296.08°) |
| OKLab | oklab(49.51% -0.0105 -0.2031) |
| OKLCH | oklch(49.51% 0.203 267) |
| XYZ | xyz(15.8685, 11.1905, 62.9390) |
| Luminance | 0.1119 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.64
Blue (survey)
#0343DF
ΔE00 4.19
Blue Blue
#2242C7
ΔE00 4.72
Azul
#1D5DEC
ΔE00 4.95
Sapphire
#0F52BA
ΔE00 4.97
Electric Blue
#0652FF
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51D3 #D3B12F
analogous
#2FA3D3 #2F51D3 #5F2FD3
triadic
#2F51D3 #D32F51 #51D32F
tetradic
#2F51D3 #D32FA3 #D3B12F #2FD35F
square
#2F51D3 #D32FA3 #D3B12F #2FD35F
split-complementary
#2F51D3 #D35F2F #A3D32F
monochromatic
#182A70 #223DA2 #2F51D3 #627BDE #94A6E8
Accessibility & contrast
On white
6.48
#2F51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#2F51D3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F51D3
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51D3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51D3 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2f51d3; /* rgb */ color: rgb(47, 81, 211); /* oklch */ color: oklch(49.5% 0.203 267.0);
Tailwind
colors: {
custom: {
50: '#8181e2',
500: '#2f51d3',
950: '#000000',
},
}SCSS
$custom: #2f51d3; $custom-light: #8181e2; $custom-dark: #000000;
JSON
{
"hex": "#2f51d3",
"rgb": {
"r": 47,
"g": 81,
"b": 211
},
"hsl": {
"h": 227.561,
"s": 65.079,
"l": 50.588
},
"oklch": {
"l": 0.49508,
"c": 0.20337,
"h": 267
},
"luminance": 0.11192
}Semantic roles & 50–950 ramp
primary
#2F51D3
secondary
#D3C48A
accent
#C540E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84