#2E3799#2E3799

#2E3799 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.158 H 272.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2E3799
RGBrgb(46, 55, 153)
HSLhsl(235, 54%, 39%)
HSVhsv(235, 70%, 60%)
CMYKcmyk(69.9%, 64.1%, 0%, 40%)
CIE-LABlab(28.41, 29.87, -54.69)
CIE-LCHlch(28.41, 62.31, 298.64°)
OKLaboklab(39.49% 0.0075 -0.1578)
OKLCHoklch(39.49% 0.158 272.7)
XYZxyz(8.2407, 5.6123, 30.7798)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3799 #99902E
analogous
#2E6D99 #2E3799 #5B2E99
triadic
#2E3799 #992E37 #37992E
tetradic
#2E3799 #992E6D #99902E #2E995B
square
#2E3799 #992E6D #99902E #2E995B
split-complementary
#2E3799 #995B2E #6D992E
monochromatic
#12153B #20266A #2E3799 #3F4AC5 #6E77D3

Accessibility & contrast

On white

9.89
#2E3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3799
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3799#FFFFFF#000000##FFFFFF
##2E37991.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e3799;
/* rgb */ color: rgb(46, 55, 153);
/* oklch */ color: oklch(39.5% 0.158 272.7);
Tailwind
colors: {
  custom: {
    50: '#756eb8',
    500: '#2e3799',
    950: '#000000',
  },
}
SCSS
$custom: #2e3799;
$custom-light: #756eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3799",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 234.953,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39485,
    "c": 0.158,
    "h": 272.7
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

primary
#2E3799
secondary
#BBB468
accent
#D14BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3799

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

Preview Lab → · Contrast checker → · Palette generator →

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