#2E3397#2E3397

#2E3397 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.160 H 273.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2E3397
RGBrgb(46, 51, 151)
HSLhsl(237, 53%, 39%)
HSVhsv(237, 70%, 59%)
CMYKcmyk(69.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.25, 31.74, -55.37)
CIE-LCHlch(27.25, 63.82, 299.83°)
OKLaboklab(38.58% 0.0107 -0.1598)
OKLCHoklch(38.58% 0.16 273.8)
XYZxyz(7.8946, 5.1821, 29.8564)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3397 #97922E
analogous
#2E6797 #2E3397 #5D2E97
triadic
#2E3397 #972E33 #33972E
tetradic
#2E3397 #972E67 #97922E #2E975D
square
#2E3397 #972E67 #97922E #2E975D
split-complementary
#2E3397 #975D2E #67972E
monochromatic
#111339 #202368 #2E3397 #3E44C4 #6D72D2

Accessibility & contrast

On white

10.31
#2E3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2E3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3397
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3397#FFFFFF#000000##FFFFFF
##2E33971.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e3397;
/* rgb */ color: rgb(46, 51, 151);
/* oklch */ color: oklch(38.6% 0.160 273.8);
Tailwind
colors: {
  custom: {
    50: '#756bb7',
    500: '#2e3397',
    950: '#000000',
  },
}
SCSS
$custom: #2e3397;
$custom-light: #756bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3397",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 237.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38577,
    "c": 0.16021,
    "h": 273.8
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#2E3397
secondary
#BAB667
accent
#D64BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E3397

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

Preview Lab → · Contrast checker → · Palette generator →

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