#2C51B3#2C51B3
#2C51B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.162 H 265.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51B3 |
|---|---|
| RGB | rgb(44, 81, 179) |
| HSL | hsl(224, 61%, 44%) |
| HSV | hsv(224, 75%, 70%) |
| CMYK | cmyk(75.4%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.25, 22.10, -55.90) |
| CIE-LCH | lch(37.25, 60.12, 291.57°) |
| OKLab | oklab(46.7% -0.014 -0.1611) |
| OKLCH | oklch(46.7% 0.162 265) |
| XYZ | xyz(12.1149, 9.6737, 43.8678) |
| Luminance | 0.0968 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.11
Cobalt
#0047AB
ΔE00 3.79
Denim Blue
#3B5B92
ΔE00 5.60
Blue Blue
#2242C7
ΔE00 5.68
Cobalt (survey)
#1E488F
ΔE00 5.70
Dusk Blue
#26538D
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51B3 #B38E2C
analogous
#2C94B3 #2C51B3 #4B2CB3
triadic
#2C51B3 #B32C51 #51B32C
tetradic
#2C51B3 #B32C94 #B38E2C #2CB34B
square
#2C51B3 #B32C94 #B38E2C #2CB34B
split-complementary
#2C51B3 #B34B2C #94B32C
monochromatic
#142551 #203B82 #2C51B3 #4A6FD2 #7B96DF
Accessibility & contrast
On white
7.16
#2C51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2C51B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C51B3
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51B3 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2c51b3; /* rgb */ color: rgb(44, 81, 179); /* oklch */ color: oklch(46.7% 0.162 265.0);
Tailwind
colors: {
custom: {
50: '#7981ca',
500: '#2c51b3',
950: '#000000',
},
}SCSS
$custom: #2c51b3; $custom-light: #7981ca; $custom-dark: #000000;
JSON
{
"hex": "#2c51b3",
"rgb": {
"r": 44,
"g": 81,
"b": 179
},
"hsl": {
"h": 223.556,
"s": 60.538,
"l": 43.725
},
"oklch": {
"l": 0.46703,
"c": 0.1617,
"h": 265
},
"luminance": 0.09675
}Semantic roles & 50–950 ramp
primary
#2C51B3
secondary
#C7B074
accent
#B844E4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82