#2F51D4#2F51D4
#2F51D4 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 49.6% C 0.205 H 267.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51D4 |
|---|---|
| RGB | rgb(47, 81, 212) |
| HSL | hsl(228, 66%, 51%) |
| HSV | hsv(228, 78%, 83%) |
| CMYK | cmyk(77.8%, 61.8%, 0%, 16.9%) |
| CIE-LAB | lab(39.98, 34.74, -70.66) |
| CIE-LCH | lch(39.98, 78.74, 296.18°) |
| OKLab | oklab(49.6% -0.0105 -0.2044) |
| OKLCH | oklch(49.6% 0.205 267.1) |
| XYZ | xyz(15.9942, 11.2408, 63.6013) |
| Luminance | 0.1124 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.56
Blue (survey)
#0343DF
ΔE00 4.16
Blue Blue
#2242C7
ΔE00 4.77
Azul
#1D5DEC
ΔE00 4.88
Electric Blue
#0652FF
ΔE00 4.96
Sapphire
#0F52BA
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51D4 #D4B22F
analogous
#2FA4D4 #2F51D4 #5F2FD4
triadic
#2F51D4 #D42F51 #51D42F
tetradic
#2F51D4 #D42FA4 #D4B22F #2FD45F
square
#2F51D4 #D42FA4 #D4B22F #2FD45F
split-complementary
#2F51D4 #D45F2F #A4D42F
monochromatic
#172A71 #223DA4 #2F51D4 #627BDE #94A6E9
Accessibility & contrast
On white
6.46
#2F51D4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#2F51D4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F51D4
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51D4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51D4 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2f51d4; /* rgb */ color: rgb(47, 81, 212); /* oklch */ color: oklch(49.6% 0.205 267.1);
Tailwind
colors: {
custom: {
50: '#8181e2',
500: '#2f51d4',
950: '#000000',
},
}SCSS
$custom: #2f51d4; $custom-light: #8181e2; $custom-dark: #000000;
JSON
{
"hex": "#2f51d4",
"rgb": {
"r": 47,
"g": 81,
"b": 212
},
"hsl": {
"h": 227.636,
"s": 65.737,
"l": 50.784
},
"oklch": {
"l": 0.49595,
"c": 0.20465,
"h": 267.1
},
"luminance": 0.11243
}Semantic roles & 50–950 ramp
primary
#2F51D4
secondary
#D4C58B
accent
#C63FE9
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84