#2C51B2#2C51B2
#2C51B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.160 H 265.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51B2 |
|---|---|
| RGB | rgb(44, 81, 178) |
| HSL | hsl(223, 60%, 44%) |
| HSV | hsv(223, 75%, 70%) |
| CMYK | cmyk(75.3%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(37.18, 21.72, -55.43) |
| CIE-LCH | lch(37.18, 59.54, 291.40°) |
| OKLab | oklab(46.62% -0.014 -0.1597) |
| OKLCH | oklch(46.62% 0.16 265) |
| XYZ | xyz(12.0142, 9.6334, 43.3371) |
| Luminance | 0.0964 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.12
Cobalt
#0047AB
ΔE00 3.74
Denim Blue
#3B5B92
ΔE00 5.50
Cobalt (survey)
#1E488F
ΔE00 5.58
Dusk Blue
#26538D
ΔE00 5.61
Blue Blue
#2242C7
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51B2 #B28D2C
analogous
#2C94B2 #2C51B2 #4A2CB2
triadic
#2C51B2 #B22C51 #51B22C
tetradic
#2C51B2 #B22C94 #B28D2C #2CB24A
square
#2C51B2 #B22C94 #B28D2C #2CB24A
split-complementary
#2C51B2 #B24A2C #94B22C
monochromatic
#142450 #203B81 #2C51B2 #496FD2 #7A96DE
Accessibility & contrast
On white
7.17
#2C51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2C51B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C51B2
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51B2 | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2c51b2; /* rgb */ color: rgb(44, 81, 178); /* oklch */ color: oklch(46.6% 0.160 265.0);
Tailwind
colors: {
custom: {
50: '#7881ca',
500: '#2c51b2',
950: '#000000',
},
}SCSS
$custom: #2c51b2; $custom-light: #7881ca; $custom-dark: #000000;
JSON
{
"hex": "#2c51b2",
"rgb": {
"r": 44,
"g": 81,
"b": 178
},
"hsl": {
"h": 223.433,
"s": 60.36,
"l": 43.529
},
"oklch": {
"l": 0.46624,
"c": 0.16034,
"h": 265
},
"luminance": 0.09635
}Semantic roles & 50–950 ramp
primary
#2C51B2
secondary
#C6AF73
accent
#B844E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82