#2740AA#2740AA
#2740AA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.172 H 267.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2740AA |
|---|---|
| RGB | rgb(39, 64, 170) |
| HSL | hsl(229, 63%, 41%) |
| HSV | hsv(229, 77%, 67%) |
| CMYK | cmyk(77.1%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(31.81, 29.38, -59.43) |
| CIE-LCH | lch(31.81, 66.30, 296.31°) |
| OKLab | oklab(42.35% -0.0064 -0.1718) |
| OKLCH | oklch(42.35% 0.172 267.9) |
| XYZ | xyz(9.9233, 6.9993, 38.8504) |
| Luminance | 0.0700 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.41
Blue Blue
#2242C7
ΔE00 3.90
Cobalt
#0047AB
ΔE00 3.95
Blueberry
#464196
ΔE00 5.31
Ocean Blue
#4F42B5
ΔE00 5.73
Cobalt (survey)
#1E488F
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2740AA #AA9127
analogous
#2781AA #2740AA #5027AA
triadic
#2740AA #AA2740 #40AA27
tetradic
#2740AA #AA2781 #AA9127 #27AA50
square
#2740AA #AA2781 #AA9127 #27AA50
split-complementary
#2740AA #AA5027 #81AA27
monochromatic
#101B46 #1C2D78 #2740AA #3C59D2 #6E83DE
Accessibility & contrast
On white
8.75
#2740AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2740AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2740AA
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2740AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2740AA | 1.00 | 8.75 | 2.40 | 8.75 |
| #FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2740aa; /* rgb */ color: rgb(39, 64, 170); /* oklch */ color: oklch(42.3% 0.172 267.9);
Tailwind
colors: {
custom: {
50: '#7674c4',
500: '#2740aa',
950: '#000000',
},
}SCSS
$custom: #2740aa; $custom-light: #7674c4; $custom-dark: #000000;
JSON
{
"hex": "#2740aa",
"rgb": {
"r": 39,
"g": 64,
"b": 170
},
"hsl": {
"h": 228.55,
"s": 62.679,
"l": 40.98
},
"oklch": {
"l": 0.42345,
"c": 0.17193,
"h": 267.9
},
"luminance": 0.07
}Semantic roles & 50–950 ramp
primary
#2740AA
secondary
#C4B369
accent
#C742E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82