#2E39A5#2E39A5

#2E39A5 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.172 H 271.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2E39A5
RGBrgb(46, 57, 165)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(72.1%, 65.5%, 0%, 35.3%)
CIE-LABlab(29.97, 32.92, -59.42)
CIE-LCHlch(29.97, 67.93, 298.98°)
OKLaboklab(40.95% 0.0053 -0.1717)
OKLCHoklch(40.95% 0.172 271.8)
XYZxyz(9.3791, 6.2228, 36.2968)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39A5 #A59A2E
analogous
#2E75A5 #2E39A5 #5F2EA5
triadic
#2E39A5 #A52E39 #39A52E
tetradic
#2E39A5 #A52E75 #A59A2E #2EA55F
square
#2E39A5 #A52E75 #A59A2E #2EA55F
split-complementary
#2E39A5 #A55F2E #75A52E
monochromatic
#131845 #212875 #2E39A5 #4551CB #757ED8

Accessibility & contrast

On white

9.35
#2E39A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E39A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39A5
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39A5#FFFFFF#000000##FFFFFF
##2E39A51.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e39a5;
/* rgb */ color: rgb(46, 57, 165);
/* oklch */ color: oklch(41.0% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#786fc1',
    500: '#2e39a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e39a5;
$custom-light: #786fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39a5",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 165
  },
  "hsl": {
    "h": 234.454,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40953,
    "c": 0.17176,
    "h": 271.8
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E39A5

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

Preview Lab → · Contrast checker → · Palette generator →

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