#2740AB#2740AB
#2740AB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.173 H 267.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2740AB |
|---|---|
| RGB | rgb(39, 64, 171) |
| HSL | hsl(229, 63%, 41%) |
| HSV | hsv(229, 77%, 67%) |
| CMYK | cmyk(77.2%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(31.89, 29.76, -59.89) |
| CIE-LCH | lch(31.89, 66.87, 296.42°) |
| OKLab | oklab(42.44% -0.0065 -0.1731) |
| OKLCH | oklch(42.44% 0.173 267.9) |
| XYZ | xyz(10.0182, 7.0373, 39.3505) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blue Blue
#2242C7
ΔE00 3.76
Cobalt
#0047AB
ΔE00 3.99
Blueberry
#464196
ΔE00 5.36
Ocean Blue
#4F42B5
ΔE00 5.65
Cobalt (survey)
#1E488F
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2740AB #AB9227
analogous
#2782AB #2740AB #5027AB
triadic
#2740AB #AB2740 #40AB27
tetradic
#2740AB #AB2782 #AB9227 #27AB50
square
#2740AB #AB2782 #AB9227 #27AB50
split-complementary
#2740AB #AB5027 #82AB27
monochromatic
#101B47 #1C2D79 #2740AB #3D59D3 #6E84DE
Accessibility & contrast
On white
8.72
#2740AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2740AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2740AB
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2740AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2740AB | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2740ab; /* rgb */ color: rgb(39, 64, 171); /* oklch */ color: oklch(42.4% 0.173 267.9);
Tailwind
colors: {
custom: {
50: '#7674c5',
500: '#2740ab',
950: '#000000',
},
}SCSS
$custom: #2740ab; $custom-light: #7674c5; $custom-dark: #000000;
JSON
{
"hex": "#2740ab",
"rgb": {
"r": 39,
"g": 64,
"b": 171
},
"hsl": {
"h": 228.636,
"s": 62.857,
"l": 41.176
},
"oklch": {
"l": 0.42435,
"c": 0.17327,
"h": 267.9
},
"luminance": 0.07038
}Semantic roles & 50–950 ramp
primary
#2740AB
secondary
#C5B369
accent
#C742E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82