#2751BA#2751BA
#2751BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.173 H 264.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2751BA |
|---|---|
| RGB | rgb(39, 81, 186) |
| HSL | hsl(223, 65%, 44%) |
| HSV | hsv(223, 79%, 73%) |
| CMYK | cmyk(79%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.59, 24.22, -59.48) |
| CIE-LCH | lch(37.59, 64.22, 292.15°) |
| OKLab | oklab(47.07% -0.0173 -0.1717) |
| OKLCH | oklch(47.07% 0.173 264.2) |
| XYZ | xyz(12.6389, 9.8599, 47.6819) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.81
Cobalt
#0047AB
ΔE00 4.01
Blue Blue
#2242C7
ΔE00 5.30
Denim
#1560BD
ΔE00 6.02
Denim Blue
#3B5B92
ΔE00 6.22
Dusk Blue
#26538D
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2751BA #BA9027
analogous
#279BBA #2751BA #4727BA
triadic
#2751BA #BA2751 #51BA27
tetradic
#2751BA #BA279B #BA9027 #27BA47
square
#2751BA #BA279B #BA9027 #27BA47
split-complementary
#2751BA #BA4727 #9BBA27
monochromatic
#122555 #1C3B87 #2751BA #4670D8 #7997E3
Accessibility & contrast
On white
7.07
#2751BA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2751BA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2751BA
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2751BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2751BA | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2751ba; /* rgb */ color: rgb(39, 81, 186); /* oklch */ color: oklch(47.1% 0.173 264.2);
Tailwind
colors: {
custom: {
50: '#7981d0',
500: '#2751ba',
950: '#000000',
},
}SCSS
$custom: #2751ba; $custom-light: #7981d0; $custom-dark: #000000;
JSON
{
"hex": "#2751ba",
"rgb": {
"r": 39,
"g": 81,
"b": 186
},
"hsl": {
"h": 222.857,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.47073,
"c": 0.17258,
"h": 264.2
},
"luminance": 0.09861
}Semantic roles & 50–950 ramp
primary
#2751BA
secondary
#CBB172
accent
#B840E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82