#2E38AB#2E38AB
#2E38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.181 H 271.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2E38AB |
|---|---|
| RGB | rgb(46, 56, 171) |
| HSL | hsl(235, 58%, 43%) |
| HSV | hsv(235, 73%, 67%) |
| CMYK | cmyk(73.1%, 67.3%, 0%, 32.9%) |
| CIE-LAB | lab(30.28, 35.70, -62.52) |
| CIE-LCH | lch(30.28, 72.00, 299.73°) |
| OKLab | oklab(41.35% 0.0055 -0.1808) |
| OKLCH | oklch(41.35% 0.181 271.7) |
| XYZ | xyz(9.8891, 6.3485, 39.2244) |
| Luminance | 0.0635 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.25
Blue Blue
#2242C7
ΔE00 4.63
Ocean Blue
#4F42B5
ΔE00 5.03
Blueberry
#464196
ΔE00 5.23
Blue With A Hint Of Purple
#533CC6
ΔE00 6.31
Cobalt
#0047AB
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E38AB #ABA12E
analogous
#2E76AB #2E38AB #622EAB
triadic
#2E38AB #AB2E38 #38AB2E
tetradic
#2E38AB #AB2E76 #ABA12E #2EAB62
square
#2E38AB #AB2E76 #ABA12E #2EAB62
split-complementary
#2E38AB #AB622E #76AB2E
monochromatic
#14184B #21287B #2E38AB #4853CE #7980DB
Accessibility & contrast
On white
9.25
#2E38AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#2E38AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E38AB
9.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E38AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E38AB | 1.00 | 9.25 | 2.27 | 9.25 |
| #FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2e38ab; /* rgb */ color: rgb(46, 56, 171); /* oklch */ color: oklch(41.3% 0.181 271.7);
Tailwind
colors: {
custom: {
50: '#796fc5',
500: '#2e38ab',
950: '#000000',
},
}SCSS
$custom: #2e38ab; $custom-light: #796fc5; $custom-dark: #000000;
JSON
{
"hex": "#2e38ab",
"rgb": {
"r": 46,
"g": 56,
"b": 171
},
"hsl": {
"h": 235.2,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.41345,
"c": 0.18085,
"h": 271.7
},
"luminance": 0.06349
}Semantic roles & 50–950 ramp
primary
#2E38AB
secondary
#C3BC72
accent
#D547E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82