#2E5795#2E5795

#2E5795 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.111 H 258.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2E5795
RGBrgb(46, 87, 149)
HSLhsl(216, 53%, 38%)
HSVhsv(216, 69%, 58%)
CMYKcmyk(69.1%, 41.6%, 0%, 41.6%)
CIE-LABlab(37.05, 7.04, -38.31)
CIE-LCHlch(37.05, 38.95, 280.41°)
OKLaboklab(45.93% -0.0222 -0.1092)
OKLCHoklch(45.93% 0.111 258.5)
XYZxyz(9.9578, 9.5662, 29.7496)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5795 #956C2E
analogous
#2E8A95 #2E5795 #392E95
triadic
#2E5795 #952E57 #57952E
tetradic
#2E5795 #952E8A #956C2E #2E9539
square
#2E5795 #952E8A #956C2E #2E9539
split-complementary
#2E5795 #95392E #8A952E
monochromatic
#112037 #203C66 #2E5795 #3D72C3 #6C94D2

Accessibility & contrast

On white

7.21
#2E5795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2E5795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5795
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5795#FFFFFF#000000##FFFFFF
##2E57951.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5C97
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e5795;
/* rgb */ color: rgb(46, 87, 149);
/* oklch */ color: oklch(45.9% 0.111 258.5);
Tailwind
colors: {
  custom: {
    50: '#7386b4',
    500: '#2e5795',
    950: '#000000',
  },
}
SCSS
$custom: #2e5795;
$custom-light: #7386b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5795",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 216.117,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45935,
    "c": 0.11146,
    "h": 258.5
  },
  "luminance": 0.09567
}

Semantic roles & 50–950 ramp

primary
#2E5795
secondary
#B99866
accent
#A34CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5795

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

Preview Lab → · Contrast checker → · Palette generator →

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