#2E5797#2E5797

#2E5797 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.1% C 0.114 H 259.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2E5797
RGBrgb(46, 87, 151)
HSLhsl(217, 53%, 39%)
HSVhsv(217, 70%, 59%)
CMYKcmyk(69.5%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.17, 7.79, -39.33)
CIE-LCHlch(37.17, 40.09, 281.20°)
OKLaboklab(46.07% -0.0218 -0.1122)
OKLCHoklch(46.07% 0.114 259)
XYZxyz(10.1188, 9.6306, 30.5978)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5797 #976E2E
analogous
#2E8B97 #2E5797 #392E97
triadic
#2E5797 #972E57 #57972E
tetradic
#2E5797 #972E8B #976E2E #2E9739
square
#2E5797 #972E8B #976E2E #2E9739
split-complementary
#2E5797 #97392E #8B972E
monochromatic
#112139 #203C68 #2E5797 #3E72C4 #6D95D2

Accessibility & contrast

On white

7.18
#2E5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2E5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5797
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5797#FFFFFF#000000##FFFFFF
##2E57971.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e5797;
/* rgb */ color: rgb(46, 87, 151);
/* oklch */ color: oklch(46.1% 0.114 259.0);
Tailwind
colors: {
  custom: {
    50: '#7385b6',
    500: '#2e5797',
    950: '#000000',
  },
}
SCSS
$custom: #2e5797;
$custom-light: #7385b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5797",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 216.571,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46066,
    "c": 0.1143,
    "h": 259
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#2E5797
secondary
#BA9967
accent
#A44BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5797

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E5797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva