#2742AB#2742AB
#2742AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.171 H 267.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2742AB |
|---|---|
| RGB | rgb(39, 66, 171) |
| HSL | hsl(228, 63%, 41%) |
| HSV | hsv(228, 77%, 67%) |
| CMYK | cmyk(77.2%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.41, 28.43, -59.05) |
| CIE-LCH | lch(32.41, 65.54, 295.71°) |
| OKLab | oklab(42.82% -0.0078 -0.1706) |
| OKLCH | oklch(42.82% 0.171 267.4) |
| XYZ | xyz(10.1330, 7.2669, 39.3888) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.03
Cobalt
#0047AB
ΔE00 3.46
Blue Blue
#2242C7
ΔE00 3.79
Blueberry
#464196
ΔE00 5.49
Cobalt (survey)
#1E488F
ΔE00 5.66
Ocean Blue
#4F42B5
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2742AB #AB9027
analogous
#2784AB #2742AB #4E27AB
triadic
#2742AB #AB2742 #42AB27
tetradic
#2742AB #AB2784 #AB9027 #27AB4E
square
#2742AB #AB2784 #AB9027 #27AB4E
split-complementary
#2742AB #AB4E27 #84AB27
monochromatic
#101C47 #1C2F79 #2742AB #3D5BD3 #6E85DE
Accessibility & contrast
On white
8.56
#2742AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2742AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2742AB
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2742AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2742AB | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2742ab; /* rgb */ color: rgb(39, 66, 171); /* oklch */ color: oklch(42.8% 0.171 267.4);
Tailwind
colors: {
custom: {
50: '#7676c5',
500: '#2742ab',
950: '#000000',
},
}SCSS
$custom: #2742ab; $custom-light: #7676c5; $custom-dark: #000000;
JSON
{
"hex": "#2742ab",
"rgb": {
"r": 39,
"g": 66,
"b": 171
},
"hsl": {
"h": 227.727,
"s": 62.857,
"l": 41.176
},
"oklch": {
"l": 0.42817,
"c": 0.17083,
"h": 267.4
},
"luminance": 0.07268
}Semantic roles & 50–950 ramp
primary
#2742AB
secondary
#C5B269
accent
#C442E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82