#2740AE#2740AE
#2740AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.177 H 267.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2740AE |
|---|---|
| RGB | rgb(39, 64, 174) |
| HSL | hsl(229, 63%, 42%) |
| HSV | hsv(229, 78%, 68%) |
| CMYK | cmyk(77.6%, 63.2%, 0%, 31.8%) |
| CIE-LAB | lab(32.15, 30.88, -61.25) |
| CIE-LCH | lch(32.15, 68.60, 296.76°) |
| OKLab | oklab(42.71% -0.0065 -0.1771) |
| OKLCH | oklch(42.71% 0.177 267.9) |
| XYZ | xyz(10.3074, 7.1530, 40.8736) |
| Luminance | 0.0715 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.34
Cobalt
#0047AB
ΔE00 4.14
Ocean Blue
#4F42B5
ΔE00 5.43
Blueberry
#464196
ΔE00 5.54
Blue (survey)
#0343DF
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2740AE #AE9527
analogous
#2784AE #2740AE #5227AE
triadic
#2740AE #AE2740 #40AE27
tetradic
#2740AE #AE2784 #AE9527 #27AE52
square
#2740AE #AE2784 #AE9527 #27AE52
split-complementary
#2740AE #AE5227 #84AE27
monochromatic
#111B4A #1C2E7C #2740AE #3E5AD4 #7085DF
Accessibility & contrast
On white
8.64
#2740AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2740AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2740AE
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2740AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2740AE | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2740ae; /* rgb */ color: rgb(39, 64, 174); /* oklch */ color: oklch(42.7% 0.177 267.9);
Tailwind
colors: {
custom: {
50: '#7774c7',
500: '#2740ae',
950: '#000000',
},
}SCSS
$custom: #2740ae; $custom-light: #7774c7; $custom-dark: #000000;
JSON
{
"hex": "#2740ae",
"rgb": {
"r": 39,
"g": 64,
"b": 174
},
"hsl": {
"h": 228.889,
"s": 63.38,
"l": 41.765
},
"oklch": {
"l": 0.42709,
"c": 0.17726,
"h": 267.9
},
"luminance": 0.07154
}Semantic roles & 50–950 ramp
primary
#2740AE
secondary
#C6B56B
accent
#C841E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82