#2E3399#2E3399

#2E3399 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.163 H 273.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2E3399
RGBrgb(46, 51, 153)
HSLhsl(237, 54%, 39%)
HSVhsv(237, 70%, 60%)
CMYKcmyk(69.9%, 66.7%, 0%, 40%)
CIE-LABlab(27.43, 32.46, -56.30)
CIE-LCHlch(27.43, 64.98, 299.97°)
OKLaboklab(38.77% 0.0106 -0.1626)
OKLCHoklch(38.77% 0.163 273.7)
XYZxyz(8.0584, 5.2476, 30.7190)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3399 #99942E
analogous
#2E6999 #2E3399 #5F2E99
triadic
#2E3399 #992E33 #33992E
tetradic
#2E3399 #992E69 #99942E #2E995F
square
#2E3399 #992E69 #99942E #2E995F
split-complementary
#2E3399 #995F2E #69992E
monochromatic
#12143B #20236A #2E3399 #3F45C5 #6E73D3

Accessibility & contrast

On white

10.25
#2E3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2E3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3399
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3399#FFFFFF#000000##FFFFFF
##2E33991.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e3399;
/* rgb */ color: rgb(46, 51, 153);
/* oklch */ color: oklch(38.8% 0.163 273.7);
Tailwind
colors: {
  custom: {
    50: '#766bb8',
    500: '#2e3399',
    950: '#000000',
  },
}
SCSS
$custom: #2e3399;
$custom-light: #766bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3399",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 237.196,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38766,
    "c": 0.16291,
    "h": 273.7
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#2E3399
secondary
#BBB768
accent
#D64BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E3399

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

Preview Lab → · Contrast checker → · Palette generator →

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