#2D51C1#2D51C1
#2D51C1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.180 H 266.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2D51C1 |
|---|---|
| RGB | rgb(45, 81, 193) |
| HSL | hsl(225, 62%, 47%) |
| HSV | hsv(225, 77%, 76%) |
| CMYK | cmyk(76.7%, 58%, 0%, 24.3%) |
| CIE-LAB | lab(38.36, 27.51, -62.31) |
| CIE-LCH | lch(38.36, 68.11, 293.82°) |
| OKLab | oklab(47.89% -0.0124 -0.1799) |
| OKLCH | oklch(47.89% 0.18 266.1) |
| XYZ | xyz(13.6469, 10.2915, 51.7090) |
| Luminance | 0.1029 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.91
Blue Blue
#2242C7
ΔE00 4.70
Cobalt
#0047AB
ΔE00 4.96
Blue (survey)
#0343DF
ΔE00 5.46
Warm Blue
#4B57DB
ΔE00 5.58
Azul
#1D5DEC
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D51C1 #C19D2D
analogous
#2D9BC1 #2D51C1 #532DC1
triadic
#2D51C1 #C12D51 #51C12D
tetradic
#2D51C1 #C12D9B #C19D2D #2DC153
square
#2D51C1 #C12D9B #C19D2D #2DC153
split-complementary
#2D51C1 #C1532D #9BC12D
monochromatic
#16275E #213C8F #2D51C1 #5474D7 #869CE3
Accessibility & contrast
On white
6.87
#2D51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#2D51C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D51C1
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D51C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D51C1 | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2d51c1; /* rgb */ color: rgb(45, 81, 193); /* oklch */ color: oklch(47.9% 0.180 266.1);
Tailwind
colors: {
custom: {
50: '#7c81d5',
500: '#2d51c1',
950: '#000000',
},
}SCSS
$custom: #2d51c1; $custom-light: #7c81d5; $custom-dark: #000000;
JSON
{
"hex": "#2d51c1",
"rgb": {
"r": 45,
"g": 81,
"b": 193
},
"hsl": {
"h": 225.405,
"s": 62.185,
"l": 46.667
},
"oklch": {
"l": 0.47886,
"c": 0.18034,
"h": 266.1
},
"luminance": 0.10293
}Semantic roles & 50–950 ramp
primary
#2D51C1
secondary
#CCB97E
accent
#BE43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83