#2C51C1#2C51C1
#2C51C1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.181 H 265.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51C1 |
|---|---|
| RGB | rgb(44, 81, 193) |
| HSL | hsl(225, 63%, 46%) |
| HSV | hsv(225, 77%, 76%) |
| CMYK | cmyk(77.2%, 58%, 0%, 24.3%) |
| CIE-LAB | lab(38.32, 27.40, -62.38) |
| CIE-LCH | lch(38.32, 68.13, 293.71°) |
| OKLab | oklab(47.85% -0.0132 -0.1801) |
| OKLCH | oklch(47.85% 0.181 265.8) |
| XYZ | xyz(13.6034, 10.2690, 51.7069) |
| Luminance | 0.1027 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.82
Blue Blue
#2242C7
ΔE00 4.73
Cobalt
#0047AB
ΔE00 4.91
Blue (survey)
#0343DF
ΔE00 5.48
Warm Blue
#4B57DB
ΔE00 5.65
Azul
#1D5DEC
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51C1 #C19C2C
analogous
#2C9CC1 #2C51C1 #522CC1
triadic
#2C51C1 #C12C51 #51C12C
tetradic
#2C51C1 #C12C9C #C19C2C #2CC152
square
#2C51C1 #C12C9C #C19C2C #2CC152
split-complementary
#2C51C1 #C1522C #9CC12C
monochromatic
#15275D #213C8F #2C51C1 #5374D8 #849CE3
Accessibility & contrast
On white
6.88
#2C51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#2C51C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C51C1
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51C1 | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 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: #2c51c1; /* rgb */ color: rgb(44, 81, 193); /* oklch */ color: oklch(47.8% 0.181 265.8);
Tailwind
colors: {
custom: {
50: '#7c81d5',
500: '#2c51c1',
950: '#000000',
},
}SCSS
$custom: #2c51c1; $custom-light: #7c81d5; $custom-dark: #000000;
JSON
{
"hex": "#2c51c1",
"rgb": {
"r": 44,
"g": 81,
"b": 193
},
"hsl": {
"h": 225.101,
"s": 62.869,
"l": 46.471
},
"oklch": {
"l": 0.47845,
"c": 0.18062,
"h": 265.8
},
"luminance": 0.10271
}Semantic roles & 50–950 ramp
primary
#2C51C1
secondary
#CCB87D
accent
#BD42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83