#2240A2#2240A2
#2240A2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.162 H 266.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2240A2 |
|---|---|
| RGB | rgb(34, 64, 162) |
| HSL | hsl(226, 65%, 38%) |
| HSV | hsv(226, 79%, 64%) |
| CMYK | cmyk(79%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(30.91, 25.79, -56.09) |
| CIE-LCH | lch(30.91, 61.74, 294.69°) |
| OKLab | oklab(41.41% -0.0108 -0.1621) |
| OKLCH | oklch(41.41% 0.162 266.2) |
| XYZ | xyz(9.0124, 6.6145, 34.9771) |
| Luminance | 0.0662 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.12
Cobalt
#0047AB
ΔE00 3.41
Cobalt (survey)
#1E488F
ΔE00 4.83
Blue Blue
#2242C7
ΔE00 5.15
Blueberry
#464196
ΔE00 5.48
Darkish Blue
#014182
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2240A2 #A28422
analogous
#2280A2 #2240A2 #4422A2
triadic
#2240A2 #A22240 #40A222
tetradic
#2240A2 #A22280 #A28422 #22A244
square
#2240A2 #A22280 #A28422 #22A244
split-complementary
#2240A2 #A24422 #80A222
monochromatic
#0D183D #172C6F #2240A2 #2E55D3 #617EDE
Accessibility & contrast
On white
9.04
#2240A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#2240A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2240A2
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2240A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2240A2 | 1.00 | 9.04 | 2.32 | 9.04 |
| #FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2240a2; /* rgb */ color: rgb(34, 64, 162); /* oklch */ color: oklch(41.4% 0.162 266.2);
Tailwind
colors: {
custom: {
50: '#7274be',
500: '#2240a2',
950: '#000000',
},
}SCSS
$custom: #2240a2; $custom-light: #7274be; $custom-dark: #000000;
JSON
{
"hex": "#2240a2",
"rgb": {
"r": 34,
"g": 64,
"b": 162
},
"hsl": {
"h": 225.938,
"s": 65.306,
"l": 38.431
},
"oklch": {
"l": 0.41412,
"c": 0.16246,
"h": 266.2
},
"luminance": 0.06616
}Semantic roles & 50–950 ramp
primary
#2240A2
secondary
#C3AB5D
accent
#C140E8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81