#2B51AA#2B51AA
#2B51AA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.150 H 264.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2B51AA |
|---|---|
| RGB | rgb(43, 81, 170) |
| HSL | hsl(222, 60%, 42%) |
| HSV | hsv(222, 75%, 67%) |
| CMYK | cmyk(74.7%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(36.55, 18.54, -51.70) |
| CIE-LCH | lch(36.55, 54.92, 289.73°) |
| OKLab | oklab(45.96% -0.0156 -0.1487) |
| OKLCH | oklch(45.96% 0.15 264) |
| XYZ | xyz(11.1918, 9.2995, 39.2276) |
| Luminance | 0.0930 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.41
Cobalt
#0047AB
ΔE00 3.48
Dusk Blue
#26538D
ΔE00 4.55
Cobalt (survey)
#1E488F
ΔE00 4.59
Denim Blue
#3B5B92
ΔE00 4.74
Light Navy Blue
#2E5A88
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B51AA #AA842B
analogous
#2B91AA #2B51AA #452BAA
triadic
#2B51AA #AA2B51 #51AA2B
tetradic
#2B51AA #AA2B91 #AA842B #2BAA45
square
#2B51AA #AA2B91 #AA842B #2BAA45
split-complementary
#2B51AA #AA452B #91AA2B
monochromatic
#122248 #1F3A79 #2B51AA #436DCF #7493DC
Accessibility & contrast
On white
7.34
#2B51AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#2B51AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B51AA
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B51AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B51AA | 1.00 | 7.34 | 2.86 | 7.34 |
| #FFFFFF | 7.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#165CAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2b51aa; /* rgb */ color: rgb(43, 81, 170); /* oklch */ color: oklch(46.0% 0.150 264.0);
Tailwind
colors: {
custom: {
50: '#7681c4',
500: '#2b51aa',
950: '#000000',
},
}SCSS
$custom: #2b51aa; $custom-light: #7681c4; $custom-dark: #000000;
JSON
{
"hex": "#2b51aa",
"rgb": {
"r": 43,
"g": 81,
"b": 170
},
"hsl": {
"h": 222.047,
"s": 59.624,
"l": 41.765
},
"oklch": {
"l": 0.45957,
"c": 0.14957,
"h": 264
},
"luminance": 0.09301
}Semantic roles & 50–950 ramp
primary
#2B51AA
secondary
#C3AA6E
accent
#B445E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82