#2742A2#2742A2
#2742A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.159 H 267.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2742A2 |
|---|---|
| RGB | rgb(39, 66, 162) |
| HSL | hsl(227, 61%, 39%) |
| HSV | hsv(227, 76%, 64%) |
| CMYK | cmyk(75.9%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.66, 25.01, -54.86) |
| CIE-LCH | lch(31.66, 60.29, 294.50°) |
| OKLab | oklab(42.03% -0.0079 -0.1584) |
| OKLCH | oklch(42.03% 0.159 267.2) |
| XYZ | xyz(9.3042, 6.9354, 35.0237) |
| Luminance | 0.0694 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.28
Sapphire (survey)
#2138AB
ΔE00 3.56
Cobalt (survey)
#1E488F
ΔE00 4.62
Blue Blue
#2242C7
ΔE00 5.10
Blueberry
#464196
ΔE00 5.20
Sapphire
#0F52BA
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2742A2 #A28727
analogous
#2780A2 #2742A2 #4927A2
triadic
#2742A2 #A22742 #42A227
tetradic
#2742A2 #A22780 #A28727 #27A249
square
#2742A2 #A22780 #A28727 #27A249
split-complementary
#2742A2 #A24927 #80A227
monochromatic
#0F1A3F #1B2E71 #2742A2 #3759CF #6982DB
Accessibility & contrast
On white
8.80
#2742A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2742A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2742A2
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2742A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2742A2 | 1.00 | 8.80 | 2.39 | 8.80 |
| #FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2742a2; /* rgb */ color: rgb(39, 66, 162); /* oklch */ color: oklch(42.0% 0.159 267.2);
Tailwind
colors: {
custom: {
50: '#7476be',
500: '#2742a2',
950: '#000000',
},
}SCSS
$custom: #2742a2; $custom-light: #7476be; $custom-dark: #000000;
JSON
{
"hex": "#2742a2",
"rgb": {
"r": 39,
"g": 66,
"b": 162
},
"hsl": {
"h": 226.829,
"s": 61.194,
"l": 39.412
},
"oklch": {
"l": 0.42028,
"c": 0.15858,
"h": 267.2
},
"luminance": 0.06936
}Semantic roles & 50–950 ramp
primary
#2742A2
secondary
#C1AC64
accent
#C143E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81