#2240B4#2240B4
#2240B4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.186 H 266.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2240B4 |
|---|---|
| RGB | rgb(34, 64, 180) |
| HSL | hsl(228, 68%, 42%) |
| HSV | hsv(228, 81%, 71%) |
| CMYK | cmyk(81.1%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(32.48, 32.66, -64.29) |
| CIE-LCH | lch(32.48, 72.11, 296.93°) |
| OKLab | oklab(43.06% -0.0108 -0.1861) |
| OKLCH | oklch(43.06% 0.186 266.7) |
| XYZ | xyz(10.7284, 7.3009, 44.0149) |
| Luminance | 0.0730 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.56
Blue Blue
#2242C7
ΔE00 2.61
Cobalt
#0047AB
ΔE00 4.17
Blue (survey)
#0343DF
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.51
Blueberry
#464196
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2240B4 #B49622
analogous
#2289B4 #2240B4 #4D22B4
triadic
#2240B4 #B42240 #40B422
tetradic
#2240B4 #B42289 #B49622 #22B44D
square
#2240B4 #B42289 #B49622 #22B44D
split-complementary
#2240B4 #B44D22 #89B422
monochromatic
#0F1B4D #182E81 #2240B4 #3A5ADA #6D85E3
Accessibility & contrast
On white
8.54
#2240B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2240B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2240B4
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2240B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2240B4 | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2240b4; /* rgb */ color: rgb(34, 64, 180); /* oklch */ color: oklch(43.1% 0.186 266.7);
Tailwind
colors: {
custom: {
50: '#7774cb',
500: '#2240b4',
950: '#000000',
},
}SCSS
$custom: #2240b4; $custom-light: #7774cb; $custom-dark: #000000;
JSON
{
"hex": "#2240b4",
"rgb": {
"r": 34,
"g": 64,
"b": 180
},
"hsl": {
"h": 227.671,
"s": 68.224,
"l": 41.961
},
"oklch": {
"l": 0.43059,
"c": 0.18644,
"h": 266.7
},
"luminance": 0.07302
}Semantic roles & 50–950 ramp
primary
#2240B4
secondary
#CAB668
accent
#C73DEB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82