#2742B2#2742B2
#2742B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.180 H 267.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2742B2 |
|---|---|
| RGB | rgb(39, 66, 178) |
| HSL | hsl(228, 64%, 43%) |
| HSV | hsv(228, 78%, 70%) |
| CMYK | cmyk(78.1%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(33.01, 31.07, -62.23) |
| CIE-LCH | lch(33.01, 69.56, 296.53°) |
| OKLab | oklab(43.45% -0.0078 -0.18) |
| OKLCH | oklch(43.45% 0.18 267.5) |
| XYZ | xyz(10.8180, 7.5409, 42.9962) |
| Luminance | 0.0754 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.79
Sapphire (survey)
#2138AB
ΔE00 3.02
Cobalt
#0047AB
ΔE00 3.89
Ocean Blue
#4F42B5
ΔE00 5.36
Blue (survey)
#0343DF
ΔE00 5.58
Blueberry
#464196
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2742B2 #B29727
analogous
#2788B2 #2742B2 #5127B2
triadic
#2742B2 #B22742 #42B227
tetradic
#2742B2 #B22788 #B29727 #27B251
square
#2742B2 #B22788 #B29727 #27B251
split-complementary
#2742B2 #B25127 #88B227
monochromatic
#111D4E #1C2F80 #2742B2 #415ED5 #7388E0
Accessibility & contrast
On white
8.37
#2742B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2742B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2742B2
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2742B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2742B2 | 1.00 | 8.37 | 2.51 | 8.37 |
| #FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2742b2; /* rgb */ color: rgb(39, 66, 178); /* oklch */ color: oklch(43.4% 0.180 267.5);
Tailwind
colors: {
custom: {
50: '#7876ca',
500: '#2742b2',
950: '#000000',
},
}SCSS
$custom: #2742b2; $custom-light: #7876ca; $custom-dark: #000000;
JSON
{
"hex": "#2742b2",
"rgb": {
"r": 39,
"g": 66,
"b": 178
},
"hsl": {
"h": 228.345,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.43449,
"c": 0.18017,
"h": 267.5
},
"luminance": 0.07542
}Semantic roles & 50–950 ramp
primary
#2742B2
secondary
#C8B66D
accent
#C741E7
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82