#2E3797#2E3797
#2E3797 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.155 H 272.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2E3797 |
|---|---|
| RGB | rgb(46, 55, 151) |
| HSL | hsl(235, 53%, 39%) |
| HSV | hsv(235, 70%, 59%) |
| CMYK | cmyk(69.5%, 63.6%, 0%, 40.8%) |
| CIE-LAB | lab(28.24, 29.14, -53.75) |
| CIE-LCH | lch(28.24, 61.14, 298.46°) |
| OKLab | oklab(39.3% 0.0076 -0.1551) |
| OKLCH | oklch(39.3% 0.155 272.8) |
| XYZ | xyz(8.0769, 5.5468, 29.9171) |
| Luminance | 0.0555 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.00
Blueberry
#464196
ΔE00 4.28
Darkslateblue
#483D8B
ΔE00 5.11
Ocean Blue
#4F42B5
ΔE00 6.76
Cobalt
#0047AB
ΔE00 7.06
Blue Blue
#2242C7
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E3797 #978E2E
analogous
#2E6B97 #2E3797 #592E97
triadic
#2E3797 #972E37 #37972E
tetradic
#2E3797 #972E6B #978E2E #2E9759
square
#2E3797 #972E6B #978E2E #2E9759
split-complementary
#2E3797 #97592E #6B972E
monochromatic
#111539 #202668 #2E3797 #3E49C4 #6D76D2
Accessibility & contrast
On white
9.95
#2E3797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#2E3797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E3797
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E3797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E3797 | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2e3797; /* rgb */ color: rgb(46, 55, 151); /* oklch */ color: oklch(39.3% 0.155 272.8);
Tailwind
colors: {
custom: {
50: '#756eb6',
500: '#2e3797',
950: '#000000',
},
}SCSS
$custom: #2e3797; $custom-light: #756eb6; $custom-dark: #000000;
JSON
{
"hex": "#2e3797",
"rgb": {
"r": 46,
"g": 55,
"b": 151
},
"hsl": {
"h": 234.857,
"s": 53.299,
"l": 38.627
},
"oklch": {
"l": 0.39304,
"c": 0.15526,
"h": 272.8
},
"luminance": 0.05548
}Semantic roles & 50–950 ramp
primary
#2E3797
secondary
#BAB367
accent
#D04BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80