#2E3791#2E3791

#2E3791 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.147 H 273.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2E3791
RGBrgb(46, 55, 145)
HSLhsl(235, 52%, 37%)
HSVhsv(235, 68%, 57%)
CMYKcmyk(68.3%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.73, 26.94, -50.90)
CIE-LCHlch(27.73, 57.59, 297.89°)
OKLaboklab(38.77% 0.0078 -0.1467)
OKLCHoklch(38.77% 0.147 273.1)
XYZxyz(7.6020, 5.3569, 27.4159)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3791 #91882E
analogous
#2E6991 #2E3791 #562E91
triadic
#2E3791 #912E37 #37912E
tetradic
#2E3791 #912E69 #91882E #2E9156
square
#2E3791 #912E69 #91882E #2E9156
split-complementary
#2E3791 #91562E #69912E
monochromatic
#111434 #1F2563 #2E3791 #3D49BF #6A73D0

Accessibility & contrast

On white

10.14
#2E3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3791
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3791#FFFFFF#000000##FFFFFF
##2E37911.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e3791;
/* rgb */ color: rgb(46, 55, 145);
/* oklch */ color: oklch(38.8% 0.147 273.1);
Tailwind
colors: {
  custom: {
    50: '#746db2',
    500: '#2e3791',
    950: '#000000',
  },
}
SCSS
$custom: #2e3791;
$custom-light: #746db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3791",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 234.545,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38768,
    "c": 0.14692,
    "h": 273.1
  },
  "luminance": 0.05358
}

Semantic roles & 50–950 ramp

primary
#2E3791
secondary
#B7AF64
accent
#CE4DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3791

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

Preview Lab → · Contrast checker → · Palette generator →

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