#2C51BD#2C51BD
#2C51BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.175 H 265.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51BD |
|---|---|
| RGB | rgb(44, 81, 189) |
| HSL | hsl(225, 62%, 46%) |
| HSV | hsv(225, 77%, 74%) |
| CMYK | cmyk(76.7%, 57.1%, 0%, 25.9%) |
| CIE-LAB | lab(38.01, 25.89, -60.55) |
| CIE-LCH | lch(38.01, 65.85, 293.15°) |
| OKLab | oklab(47.51% -0.0133 -0.1748) |
| OKLCH | oklch(47.51% 0.175 265.6) |
| XYZ | xyz(13.1632, 10.0930, 49.3886) |
| Luminance | 0.1009 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.49
Cobalt
#0047AB
ΔE00 4.52
Blue Blue
#2242C7
ΔE00 4.93
Blue (survey)
#0343DF
ΔE00 5.89
Warm Blue
#4B57DB
ΔE00 6.11
Denim
#1560BD
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51BD #BD982C
analogous
#2C99BD #2C51BD #502CBD
triadic
#2C51BD #BD2C51 #51BD2C
tetradic
#2C51BD #BD2C99 #BD982C #2CBD50
square
#2C51BD #BD2C99 #BD982C #2CBD50
split-complementary
#2C51BD #BD502C #99BD2C
monochromatic
#15265A #203C8B #2C51BD #5072D6 #829AE2
Accessibility & contrast
On white
6.96
#2C51BD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#2C51BD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C51BD
6.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51BD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51BD | 1.00 | 6.96 | 3.02 | 6.96 |
| #FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2c51bd; /* rgb */ color: rgb(44, 81, 189); /* oklch */ color: oklch(47.5% 0.175 265.6);
Tailwind
colors: {
custom: {
50: '#7b81d2',
500: '#2c51bd',
950: '#000000',
},
}SCSS
$custom: #2c51bd; $custom-light: #7b81d2; $custom-dark: #000000;
JSON
{
"hex": "#2c51bd",
"rgb": {
"r": 44,
"g": 81,
"b": 189
},
"hsl": {
"h": 224.69,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.47513,
"c": 0.17527,
"h": 265.6
},
"luminance": 0.10094
}Semantic roles & 50–950 ramp
primary
#2C51BD
secondary
#CBB67A
accent
#BC42E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83