#2E4797#2E4797
#2E4797 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.135 H 267.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2E4797 |
|---|---|
| RGB | rgb(46, 71, 151) |
| HSL | hsl(226, 53%, 39%) |
| HSV | hsv(226, 70%, 59%) |
| CMYK | cmyk(69.5%, 53%, 0%, 40.8%) |
| CIE-LAB | lab(32.53, 18.43, -46.78) |
| CIE-LCH | lch(32.53, 50.28, 291.50°) |
| OKLab | oklab(42.51% -0.0062 -0.1344) |
| OKLCH | oklch(42.51% 0.135 267.4) |
| XYZ | xyz(8.9639, 7.3208, 30.2128) |
| Luminance | 0.0732 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.95
Cobalt
#0047AB
ΔE00 3.71
Blueberry
#464196
ΔE00 5.43
Darkish Blue
#014182
ΔE00 5.54
Dusk Blue
#26538D
ΔE00 5.73
Sapphire (survey)
#2138AB
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E4797 #977E2E
analogous
#2E7B97 #2E4797 #492E97
triadic
#2E4797 #972E47 #47972E
tetradic
#2E4797 #972E7B #977E2E #2E9749
square
#2E4797 #972E7B #977E2E #2E9749
split-complementary
#2E4797 #97492E #7B972E
monochromatic
#111B39 #203168 #2E4797 #3E5EC4 #6D85D2
Accessibility & contrast
On white
8.52
#2E4797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2E4797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E4797
8.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E4797 | 1.00 | 8.52 | 2.46 | 8.52 |
| #FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#14529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2e4797; /* rgb */ color: rgb(46, 71, 151); /* oklch */ color: oklch(42.5% 0.135 267.4);
Tailwind
colors: {
custom: {
50: '#7479b6',
500: '#2e4797',
950: '#000000',
},
}SCSS
$custom: #2e4797; $custom-light: #7479b6; $custom-dark: #000000;
JSON
{
"hex": "#2e4797",
"rgb": {
"r": 46,
"g": 71,
"b": 151
},
"hsl": {
"h": 225.714,
"s": 53.299,
"l": 38.627
},
"oklch": {
"l": 0.42506,
"c": 0.13453,
"h": 267.4
},
"luminance": 0.07322
}Semantic roles & 50–950 ramp
primary
#2E4797
secondary
#BAA667
accent
#BA4BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80