#2E39A1#2E39A1

#2E39A1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.166 H 271.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2E39A1
RGBrgb(46, 57, 161)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 71%, 63%)
CMYKcmyk(71.4%, 64.6%, 0%, 36.9%)
CIE-LABlab(29.61, 31.47, -57.59)
CIE-LCHlch(29.61, 65.62, 298.65°)
OKLaboklab(40.58% 0.0056 -0.1663)
OKLCHoklch(40.58% 0.166 271.9)
XYZxyz(9.0207, 6.0794, 34.4094)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39A1 #A1962E
analogous
#2E72A1 #2E39A1 #5C2EA1
triadic
#2E39A1 #A12E39 #39A12E
tetradic
#2E39A1 #A12E72 #A1962E #2EA15C
square
#2E39A1 #A12E72 #A1962E #2EA15C
split-complementary
#2E39A1 #A15C2E #72A12E
monochromatic
#131742 #202871 #2E39A1 #4350C9 #737CD7

Accessibility & contrast

On white

9.48
#2E39A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2E39A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39A1
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39A1#FFFFFF#000000##FFFFFF
##2E39A11.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e39a1;
/* rgb */ color: rgb(46, 57, 161);
/* oklch */ color: oklch(40.6% 0.166 271.9);
Tailwind
colors: {
  custom: {
    50: '#776fbe',
    500: '#2e39a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e39a1;
$custom-light: #776fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39a1",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 234.261,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40583,
    "c": 0.1664,
    "h": 271.9
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#2E39A1
secondary
#BEB76C
accent
#D149DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E39A1

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

Preview Lab → · Contrast checker → · Palette generator →

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