#2742A3#2742A3
#2742A3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.160 H 267.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2742A3 |
|---|---|
| RGB | rgb(39, 66, 163) |
| HSL | hsl(227, 61%, 40%) |
| HSV | hsv(227, 76%, 64%) |
| CMYK | cmyk(76.1%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(31.74, 25.39, -55.33) |
| CIE-LCH | lch(31.74, 60.88, 294.65°) |
| OKLab | oklab(42.11% -0.0079 -0.1598) |
| OKLCH | oklch(42.11% 0.16 267.2) |
| XYZ | xyz(9.3935, 6.9711, 35.4937) |
| Luminance | 0.0697 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.28
Sapphire (survey)
#2138AB
ΔE00 3.47
Cobalt (survey)
#1E488F
ΔE00 4.73
Blue Blue
#2242C7
ΔE00 4.95
Blueberry
#464196
ΔE00 5.22
Sapphire
#0F52BA
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2742A3 #A38827
analogous
#2780A3 #2742A3 #4A27A3
triadic
#2742A3 #A32742 #42A327
tetradic
#2742A3 #A32780 #A38827 #27A34A
square
#2742A3 #A32780 #A38827 #27A34A
split-complementary
#2742A3 #A34A27 #80A327
monochromatic
#0F1A40 #1B2E72 #2742A3 #3859CF #6982DB
Accessibility & contrast
On white
8.77
#2742A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2742A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2742A3
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2742A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2742A3 | 1.00 | 8.77 | 2.39 | 8.77 |
| #FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2742a3; /* rgb */ color: rgb(39, 66, 163); /* oklch */ color: oklch(42.1% 0.160 267.2);
Tailwind
colors: {
custom: {
50: '#7476bf',
500: '#2742a3',
950: '#000000',
},
}SCSS
$custom: #2742a3; $custom-light: #7476bf; $custom-dark: #000000;
JSON
{
"hex": "#2742a3",
"rgb": {
"r": 39,
"g": 66,
"b": 163
},
"hsl": {
"h": 226.935,
"s": 61.386,
"l": 39.608
},
"oklch": {
"l": 0.42114,
"c": 0.15995,
"h": 267.2
},
"luminance": 0.06972
}Semantic roles & 50–950 ramp
primary
#2742A3
secondary
#C1AD64
accent
#C143E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81