#2B51B3#2B51B3
#2B51B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.162 H 264.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2B51B3 |
|---|---|
| RGB | rgb(43, 81, 179) |
| HSL | hsl(223, 61%, 44%) |
| HSV | hsv(223, 76%, 70%) |
| CMYK | cmyk(76%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.21, 21.98, -55.97) |
| CIE-LCH | lch(37.21, 60.13, 291.44°) |
| OKLab | oklab(46.66% -0.0148 -0.1613) |
| OKLCH | oklch(46.66% 0.162 264.8) |
| XYZ | xyz(12.0725, 9.6518, 43.8658) |
| Luminance | 0.0965 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.01
Cobalt
#0047AB
ΔE00 3.73
Denim Blue
#3B5B92
ΔE00 5.58
Cobalt (survey)
#1E488F
ΔE00 5.66
Dusk Blue
#26538D
ΔE00 5.67
Blue Blue
#2242C7
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B51B3 #B38D2B
analogous
#2B95B3 #2B51B3 #492BB3
triadic
#2B51B3 #B32B51 #51B32B
tetradic
#2B51B3 #B32B95 #B38D2B #2BB349
square
#2B51B3 #B32B95 #B38D2B #2BB349
split-complementary
#2B51B3 #B3492B #95B32B
monochromatic
#132450 #1F3B82 #2B51B3 #486FD3 #7996DF
Accessibility & contrast
On white
7.17
#2B51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2B51B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B51B3
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B51B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B51B3 | 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)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2b51b3; /* rgb */ color: rgb(43, 81, 179); /* oklch */ color: oklch(46.7% 0.162 264.8);
Tailwind
colors: {
custom: {
50: '#7881ca',
500: '#2b51b3',
950: '#000000',
},
}SCSS
$custom: #2b51b3; $custom-light: #7881ca; $custom-dark: #000000;
JSON
{
"hex": "#2b51b3",
"rgb": {
"r": 43,
"g": 81,
"b": 179
},
"hsl": {
"h": 223.235,
"s": 61.261,
"l": 43.529
},
"oklch": {
"l": 0.46662,
"c": 0.16199,
"h": 264.8
},
"luminance": 0.09653
}Semantic roles & 50–950 ramp
primary
#2B51B3
secondary
#C7AF73
accent
#B743E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82