#2E45A8#2E45A8
#2E45A8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.161 H 268.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2E45A8 |
|---|---|
| RGB | rgb(46, 69, 168) |
| HSL | hsl(229, 57%, 42%) |
| HSV | hsv(229, 73%, 66%) |
| CMYK | cmyk(72.6%, 58.9%, 0%, 34.1%) |
| CIE-LAB | lab(33.27, 26.16, -55.83) |
| CIE-LCH | lch(33.27, 61.65, 295.11°) |
| OKLab | oklab(43.47% -0.0035 -0.161) |
| OKLCH | oklch(43.47% 0.161 268.7) |
| XYZ | xyz(10.3203, 7.6632, 37.9734) |
| Luminance | 0.0766 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.43
Sapphire (survey)
#2138AB
ΔE00 3.99
Blue Blue
#2242C7
ΔE00 4.31
Blueberry
#464196
ΔE00 5.07
Cobalt (survey)
#1E488F
ΔE00 5.21
Sapphire
#0F52BA
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E45A8 #A8912E
analogous
#2E82A8 #2E45A8 #542EA8
triadic
#2E45A8 #A82E45 #45A82E
tetradic
#2E45A8 #A82E82 #A8912E #2EA854
square
#2E45A8 #A82E82 #A8912E #2EA854
split-complementary
#2E45A8 #A8542E #82A82E
monochromatic
#141E48 #213178 #2E45A8 #4760CD #7789DA
Accessibility & contrast
On white
8.29
#2E45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#2E45A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E45A8
8.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E45A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E45A8 | 1.00 | 8.29 | 2.53 | 8.29 |
| #FFFFFF | 8.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2e45a8; /* rgb */ color: rgb(46, 69, 168); /* oklch */ color: oklch(43.5% 0.161 268.7);
Tailwind
colors: {
custom: {
50: '#7878c3',
500: '#2e45a8',
950: '#000000',
},
}SCSS
$custom: #2e45a8; $custom-light: #7878c3; $custom-dark: #000000;
JSON
{
"hex": "#2e45a8",
"rgb": {
"r": 46,
"g": 69,
"b": 168
},
"hsl": {
"h": 228.689,
"s": 57.009,
"l": 41.961
},
"oklch": {
"l": 0.43473,
"c": 0.16106,
"h": 268.7
},
"luminance": 0.07664
}Semantic roles & 50–950 ramp
primary
#2E45A8
secondary
#C2B270
accent
#C348E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81