#2E5796#2E5796

#2E5796 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.113 H 258.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2E5796
RGBrgb(46, 87, 150)
HSLhsl(216, 53%, 38%)
HSVhsv(216, 69%, 59%)
CMYKcmyk(69.3%, 42%, 0%, 41.2%)
CIE-LABlab(37.11, 7.41, -38.82)
CIE-LCHlch(37.11, 39.52, 280.81°)
OKLaboklab(46% -0.022 -0.1107)
OKLCHoklch(46% 0.113 258.8)
XYZxyz(10.0379, 9.5982, 30.1719)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5796 #966D2E
analogous
#2E8B96 #2E5796 #392E96
triadic
#2E5796 #962E57 #57962E
tetradic
#2E5796 #962E8B #966D2E #2E9639
square
#2E5796 #962E8B #966D2E #2E9639
split-complementary
#2E5796 #96392E #8B962E
monochromatic
#112138 #203C67 #2E5796 #3E72C4 #6C94D2

Accessibility & contrast

On white

7.19
#2E5796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2E5796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5796
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5796#FFFFFF#000000##FFFFFF
##2E57961.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D98
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e5796;
/* rgb */ color: rgb(46, 87, 150);
/* oklch */ color: oklch(46.0% 0.113 258.8);
Tailwind
colors: {
  custom: {
    50: '#7385b5',
    500: '#2e5796',
    950: '#000000',
  },
}
SCSS
$custom: #2e5796;
$custom-light: #7385b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5796",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 216.346,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46,
    "c": 0.11288,
    "h": 258.8
  },
  "luminance": 0.09599
}

Semantic roles & 50–950 ramp

primary
#2E5796
secondary
#B99967
accent
#A34BDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5796

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

Preview Lab → · Contrast checker → · Palette generator →

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