#2E3396#2E3396

#2E3396 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.159 H 273.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2E3396
RGBrgb(46, 51, 150)
HSLhsl(237, 53%, 38%)
HSVhsv(237, 69%, 59%)
CMYKcmyk(69.3%, 66%, 0%, 41.2%)
CIE-LABlab(27.16, 31.39, -54.90)
CIE-LCHlch(27.16, 63.24, 299.75°)
OKLaboklab(38.48% 0.0108 -0.1585)
OKLCHoklch(38.48% 0.159 273.9)
XYZxyz(7.8137, 5.1498, 29.4305)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3396 #96912E
analogous
#2E6796 #2E3396 #5D2E96
triadic
#2E3396 #962E33 #33962E
tetradic
#2E3396 #962E67 #96912E #2E965D
square
#2E3396 #962E67 #96912E #2E965D
split-complementary
#2E3396 #965D2E #67962E
monochromatic
#111338 #202367 #2E3396 #3E44C4 #6C71D2

Accessibility & contrast

On white

10.34
#2E3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2E3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3396
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3396#FFFFFF#000000##FFFFFF
##2E33961.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e3396;
/* rgb */ color: rgb(46, 51, 150);
/* oklch */ color: oklch(38.5% 0.159 273.9);
Tailwind
colors: {
  custom: {
    50: '#756bb6',
    500: '#2e3396',
    950: '#000000',
  },
}
SCSS
$custom: #2e3396;
$custom-light: #756bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3396",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 237.115,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.15886,
    "h": 273.9
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#2E3396
secondary
#B9B567
accent
#D54BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E3396

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

Preview Lab → · Contrast checker → · Palette generator →

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