#2B51C2#2B51C2
#2B51C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.182 H 265.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2B51C2 |
|---|---|
| RGB | rgb(43, 81, 194) |
| HSL | hsl(225, 64%, 46%) |
| HSV | hsv(225, 78%, 76%) |
| CMYK | cmyk(77.8%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(38.36, 27.67, -62.90) |
| CIE-LCH | lch(38.36, 68.72, 293.75°) |
| OKLab | oklab(47.89% -0.0139 -0.1817) |
| OKLCH | oklch(47.89% 0.182 265.6) |
| XYZ | xyz(13.6729, 10.2919, 52.2944) |
| Luminance | 0.1029 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.82
Blue Blue
#2242C7
ΔE00 4.71
Cobalt
#0047AB
ΔE00 4.95
Blue (survey)
#0343DF
ΔE00 5.41
Warm Blue
#4B57DB
ΔE00 5.60
Azul
#1D5DEC
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B51C2 #C29C2B
analogous
#2B9DC2 #2B51C2 #512BC2
triadic
#2B51C2 #C22B51 #51C22B
tetradic
#2B51C2 #C22B9D #C29C2B #2BC251
square
#2B51C2 #C22B9D #C29C2B #2BC251
split-complementary
#2B51C2 #C2512B #9DC22B
monochromatic
#15275E #203C90 #2B51C2 #5274D9 #849CE4
Accessibility & contrast
On white
6.87
#2B51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#2B51C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B51C2
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B51C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B51C2 | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2b51c2; /* rgb */ color: rgb(43, 81, 194); /* oklch */ color: oklch(47.9% 0.182 265.6);
Tailwind
colors: {
custom: {
50: '#7c81d5',
500: '#2b51c2',
950: '#000000',
},
}SCSS
$custom: #2b51c2; $custom-light: #7c81d5; $custom-dark: #000000;
JSON
{
"hex": "#2b51c2",
"rgb": {
"r": 43,
"g": 81,
"b": 194
},
"hsl": {
"h": 224.901,
"s": 63.713,
"l": 46.471
},
"oklch": {
"l": 0.47889,
"c": 0.18221,
"h": 265.6
},
"luminance": 0.10293
}Semantic roles & 50–950 ramp
primary
#2B51C2
secondary
#CDB87C
accent
#BD41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83