#2C51BE#2C51BE
#2C51BE is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.177 H 265.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51BE |
|---|---|
| RGB | rgb(44, 81, 190) |
| HSL | hsl(225, 62%, 46%) |
| HSV | hsv(225, 77%, 75%) |
| CMYK | cmyk(76.8%, 57.4%, 0%, 25.5%) |
| CIE-LAB | lab(38.09, 26.27, -61.01) |
| CIE-LCH | lch(38.09, 66.42, 293.30°) |
| OKLab | oklab(47.6% -0.0133 -0.1761) |
| OKLCH | oklch(47.6% 0.177 265.7) |
| XYZ | xyz(13.2721, 10.1365, 49.9623) |
| Luminance | 0.1014 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.57
Cobalt
#0047AB
ΔE00 4.62
Blue Blue
#2242C7
ΔE00 4.87
Blue (survey)
#0343DF
ΔE00 5.79
Warm Blue
#4B57DB
ΔE00 5.99
Denim
#1560BD
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51BE #BE992C
analogous
#2C9ABE #2C51BE #502CBE
triadic
#2C51BE #BE2C51 #51BE2C
tetradic
#2C51BE #BE2C9A #BE992C #2CBE50
square
#2C51BE #BE2C9A #BE992C #2CBE50
split-complementary
#2C51BE #BE502C #9ABE2C
monochromatic
#15275B #203C8C #2C51BE #5173D7 #829BE2
Accessibility & contrast
On white
6.94
#2C51BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#2C51BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C51BE
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51BE | 1.00 | 6.94 | 3.03 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2c51be; /* rgb */ color: rgb(44, 81, 190); /* oklch */ color: oklch(47.6% 0.177 265.7);
Tailwind
colors: {
custom: {
50: '#7b81d2',
500: '#2c51be',
950: '#000000',
},
}SCSS
$custom: #2c51be; $custom-light: #7b81d2; $custom-dark: #000000;
JSON
{
"hex": "#2c51be",
"rgb": {
"r": 44,
"g": 81,
"b": 190
},
"hsl": {
"h": 224.795,
"s": 62.393,
"l": 45.882
},
"oklch": {
"l": 0.47596,
"c": 0.17661,
"h": 265.7
},
"luminance": 0.10138
}Semantic roles & 50–950 ramp
primary
#2C51BE
secondary
#CBB77B
accent
#BC42E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83