#2E3796#2E3796

#2E3796 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.154 H 272.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2E3796
RGBrgb(46, 55, 150)
HSLhsl(235, 53%, 38%)
HSVhsv(235, 69%, 59%)
CMYKcmyk(69.3%, 63.3%, 0%, 41.2%)
CIE-LABlab(28.15, 28.77, -53.28)
CIE-LCHlch(28.15, 60.55, 298.37°)
OKLaboklab(39.21% 0.0077 -0.1537)
OKLCHoklch(39.21% 0.154 272.9)
XYZxyz(7.9961, 5.5145, 29.4913)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3796 #968D2E
analogous
#2E6B96 #2E3796 #592E96
triadic
#2E3796 #962E37 #37962E
tetradic
#2E3796 #962E6B #968D2E #2E9659
square
#2E3796 #962E6B #968D2E #2E9659
split-complementary
#2E3796 #96592E #6B962E
monochromatic
#111538 #202667 #2E3796 #3E49C4 #6C75D2

Accessibility & contrast

On white

9.99
#2E3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2E3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3796
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3796#FFFFFF#000000##FFFFFF
##2E37961.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e3796;
/* rgb */ color: rgb(46, 55, 150);
/* oklch */ color: oklch(39.2% 0.154 272.9);
Tailwind
colors: {
  custom: {
    50: '#756eb6',
    500: '#2e3796',
    950: '#000000',
  },
}
SCSS
$custom: #2e3796;
$custom-light: #756eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3796",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 234.808,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.15388,
    "h": 272.9
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#2E3796
secondary
#B9B267
accent
#D04BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3796

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

Preview Lab → · Contrast checker → · Palette generator →

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