#2740AD#2740AD
#2740AD is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.176 H 267.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2740AD |
|---|---|
| RGB | rgb(39, 64, 173) |
| HSL | hsl(229, 63%, 42%) |
| HSV | hsv(229, 77%, 68%) |
| CMYK | cmyk(77.5%, 63%, 0%, 32.2%) |
| CIE-LAB | lab(32.07, 30.51, -60.80) |
| CIE-LCH | lch(32.07, 68.02, 296.65°) |
| OKLab | oklab(42.62% -0.0065 -0.1758) |
| OKLCH | oklch(42.62% 0.176 267.9) |
| XYZ | xyz(10.2103, 7.1141, 40.3621) |
| Luminance | 0.0712 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.48
Cobalt
#0047AB
ΔE00 4.08
Blueberry
#464196
ΔE00 5.48
Ocean Blue
#4F42B5
ΔE00 5.50
Blue (survey)
#0343DF
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2740AD #AD9427
analogous
#2783AD #2740AD #5127AD
triadic
#2740AD #AD2740 #40AD27
tetradic
#2740AD #AD2783 #AD9427 #27AD51
square
#2740AD #AD2783 #AD9427 #27AD51
split-complementary
#2740AD #AD5127 #83AD27
monochromatic
#101B49 #1C2E7B #2740AD #3E5AD3 #7084DF
Accessibility & contrast
On white
8.67
#2740AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2740AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2740AD
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2740AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2740AD | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2740ad; /* rgb */ color: rgb(39, 64, 173); /* oklch */ color: oklch(42.6% 0.176 267.9);
Tailwind
colors: {
custom: {
50: '#7774c6',
500: '#2740ad',
950: '#000000',
},
}SCSS
$custom: #2740ad; $custom-light: #7774c6; $custom-dark: #000000;
JSON
{
"hex": "#2740ad",
"rgb": {
"r": 39,
"g": 64,
"b": 173
},
"hsl": {
"h": 228.806,
"s": 63.208,
"l": 41.569
},
"oklch": {
"l": 0.42617,
"c": 0.17593,
"h": 267.9
},
"luminance": 0.07115
}Semantic roles & 50–950 ramp
primary
#2740AD
secondary
#C6B46A
accent
#C842E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82