#2E39A6#2E39A6

#2E39A6 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.173 H 271.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2E39A6
RGBrgb(46, 57, 166)
HSLhsl(235, 57%, 42%)
HSVhsv(235, 72%, 65%)
CMYKcmyk(72.3%, 65.7%, 0%, 34.9%)
CIE-LABlab(30.06, 33.28, -59.88)
CIE-LCHlch(30.06, 68.50, 299.06°)
OKLaboklab(41.05% 0.0053 -0.173)
OKLCHoklch(41.05% 0.173 271.7)
XYZxyz(9.4704, 6.2593, 36.7781)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39A6 #A69B2E
analogous
#2E75A6 #2E39A6 #5F2EA6
triadic
#2E39A6 #A62E39 #39A62E
tetradic
#2E39A6 #A62E75 #A69B2E #2EA65F
square
#2E39A6 #A62E75 #A69B2E #2EA65F
split-complementary
#2E39A6 #A65F2E #75A62E
monochromatic
#131846 #212976 #2E39A6 #4652CC #767FD9

Accessibility & contrast

On white

9.33
#2E39A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2E39A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39A6
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39A6#FFFFFF#000000##FFFFFF
##2E39A61.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e39a6;
/* rgb */ color: rgb(46, 57, 166);
/* oklch */ color: oklch(41.0% 0.173 271.7);
Tailwind
colors: {
  custom: {
    50: '#786fc1',
    500: '#2e39a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e39a6;
$custom-light: #786fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39a6",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 234.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41046,
    "c": 0.1731,
    "h": 271.7
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#2E39A6
secondary
#C1B96F
accent
#D248E0
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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