#2C51BF#2C51BF
#2C51BF is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.178 H 265.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2C51BF |
|---|---|
| RGB | rgb(44, 81, 191) |
| HSL | hsl(225, 63%, 46%) |
| HSV | hsv(225, 77%, 75%) |
| CMYK | cmyk(77%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(38.16, 26.65, -61.47) |
| CIE-LCH | lch(38.16, 66.99, 293.44°) |
| OKLab | oklab(47.68% -0.0132 -0.1774) |
| OKLCH | oklch(47.68% 0.178 265.7) |
| XYZ | xyz(13.3818, 10.1804, 50.5399) |
| Luminance | 0.1018 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.65
Cobalt
#0047AB
ΔE00 4.71
Blue Blue
#2242C7
ΔE00 4.82
Blue (survey)
#0343DF
ΔE00 5.68
Warm Blue
#4B57DB
ΔE00 5.88
Denim
#1560BD
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C51BF #BF9A2C
analogous
#2C9ABF #2C51BF #502CBF
triadic
#2C51BF #BF2C51 #51BF2C
tetradic
#2C51BF #BF2C9A #BF9A2C #2CBF50
square
#2C51BF #BF2C9A #BF9A2C #2CBF50
split-complementary
#2C51BF #BF502C #9ABF2C
monochromatic
#15275C #213C8D #2C51BF #5173D7 #839BE2
Accessibility & contrast
On white
6.92
#2C51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#2C51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C51BF
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C51BF | 1.00 | 6.92 | 3.04 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2c51bf; /* rgb */ color: rgb(44, 81, 191); /* oklch */ color: oklch(47.7% 0.178 265.7);
Tailwind
colors: {
custom: {
50: '#7b81d3',
500: '#2c51bf',
950: '#000000',
},
}SCSS
$custom: #2c51bf; $custom-light: #7b81d3; $custom-dark: #000000;
JSON
{
"hex": "#2c51bf",
"rgb": {
"r": 44,
"g": 81,
"b": 191
},
"hsl": {
"h": 224.898,
"s": 62.553,
"l": 46.078
},
"oklch": {
"l": 0.47679,
"c": 0.17794,
"h": 265.7
},
"luminance": 0.10182
}Semantic roles & 50–950 ramp
primary
#2C51BF
secondary
#CCB77B
accent
#BC42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83