#2740A1#2740A1
#2740A1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.160 H 267.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2740A1 |
|---|---|
| RGB | rgb(39, 64, 161) |
| HSL | hsl(228, 61%, 39%) |
| HSV | hsv(228, 76%, 63%) |
| CMYK | cmyk(75.8%, 60.2%, 0%, 36.9%) |
| CIE-LAB | lab(31.04, 25.97, -55.26) |
| CIE-LCH | lch(31.04, 61.06, 295.17°) |
| OKLab | oklab(41.54% -0.0065 -0.1596) |
| OKLCH | oklch(41.54% 0.16 267.7) |
| XYZ | xyz(9.1009, 6.6703, 34.5192) |
| Luminance | 0.0667 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.03
Cobalt
#0047AB
ΔE00 3.81
Blueberry
#464196
ΔE00 4.98
Cobalt (survey)
#1E488F
ΔE00 5.06
Blue Blue
#2242C7
ΔE00 5.19
Ocean Blue
#4F42B5
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2740A1 #A18827
analogous
#277DA1 #2740A1 #4B27A1
triadic
#2740A1 #A12740 #40A127
tetradic
#2740A1 #A1277D #A18827 #27A14B
square
#2740A1 #A1277D #A18827 #27A14B
split-complementary
#2740A1 #A14B27 #7DA127
monochromatic
#0F193E #1B2C70 #2740A1 #3756CE #687FDA
Accessibility & contrast
On white
9.00
#2740A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#2740A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2740A1
9.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2740A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2740A1 | 1.00 | 9.00 | 2.33 | 9.00 |
| #FFFFFF | 9.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2740a1; /* rgb */ color: rgb(39, 64, 161); /* oklch */ color: oklch(41.5% 0.160 267.7);
Tailwind
colors: {
custom: {
50: '#7474be',
500: '#2740a1',
950: '#000000',
},
}SCSS
$custom: #2740a1; $custom-light: #7474be; $custom-dark: #000000;
JSON
{
"hex": "#2740a1",
"rgb": {
"r": 39,
"g": 64,
"b": 161
},
"hsl": {
"h": 227.705,
"s": 61,
"l": 39.216
},
"oklch": {
"l": 0.41543,
"c": 0.15971,
"h": 267.7
},
"luminance": 0.06671
}Semantic roles & 50–950 ramp
primary
#2740A1
secondary
#C0AD63
accent
#C344E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81