#2D51B2#2D51B2
#2D51B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 265.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2D51B2 |
|---|---|
| RGB | rgb(45, 81, 178) |
| HSL | hsl(224, 60%, 44%) |
| HSV | hsv(224, 75%, 70%) |
| CMYK | cmyk(74.7%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(37.22, 21.85, -55.37) |
| CIE-LCH | lch(37.22, 59.52, 291.54°) |
| OKLab | oklab(46.67% -0.0132 -0.1595) |
| OKLCH | oklch(46.67% 0.16 265.3) |
| XYZ | xyz(12.0577, 9.6558, 43.3391) |
| Luminance | 0.0966 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.22
Cobalt
#0047AB
ΔE00 3.80
Denim Blue
#3B5B92
ΔE00 5.52
Cobalt (survey)
#1E488F
ΔE00 5.63
Dusk Blue
#26538D
ΔE00 5.68
Blue Blue
#2242C7
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D51B2 #B28E2D
analogous
#2D93B2 #2D51B2 #4B2DB2
triadic
#2D51B2 #B22D51 #51B22D
tetradic
#2D51B2 #B22D93 #B28E2D #2DB24B
square
#2D51B2 #B22D93 #B28E2D #2DB24B
split-complementary
#2D51B2 #B24B2D #93B22D
monochromatic
#142550 #213B81 #2D51B2 #4B6FD1 #7C96DE
Accessibility & contrast
On white
7.16
#2D51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2D51B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D51B2
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D51B2 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2d51b2; /* rgb */ color: rgb(45, 81, 178); /* oklch */ color: oklch(46.7% 0.160 265.3);
Tailwind
colors: {
custom: {
50: '#7981ca',
500: '#2d51b2',
950: '#000000',
},
}SCSS
$custom: #2d51b2; $custom-light: #7981ca; $custom-dark: #000000;
JSON
{
"hex": "#2d51b2",
"rgb": {
"r": 45,
"g": 81,
"b": 178
},
"hsl": {
"h": 223.759,
"s": 59.641,
"l": 43.725
},
"oklch": {
"l": 0.46666,
"c": 0.16005,
"h": 265.3
},
"luminance": 0.09657
}Semantic roles & 50–950 ramp
primary
#2D51B2
secondary
#C6B075
accent
#B845E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82