#2E39A4#2E39A4

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

Color values

HEX#2E39A4
RGBrgb(46, 57, 164)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 72%, 64%)
CMYKcmyk(72%, 65.2%, 0%, 35.7%)
CIE-LABlab(29.88, 32.55, -58.96)
CIE-LCHlch(29.88, 67.35, 298.90°)
OKLaboklab(40.86% 0.0054 -0.1703)
OKLCHoklch(40.86% 0.17 271.8)
XYZxyz(9.2884, 6.1865, 35.8194)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39A4 #A4992E
analogous
#2E74A4 #2E39A4 #5E2EA4
triadic
#2E39A4 #A42E39 #39A42E
tetradic
#2E39A4 #A42E74 #A4992E #2EA45E
square
#2E39A4 #A42E74 #A4992E #2EA45E
split-complementary
#2E39A4 #A45E2E #74A42E
monochromatic
#131844 #212874 #2E39A4 #4551CB #747ED8

Accessibility & contrast

On white

9.39
#2E39A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E39A4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39A4#FFFFFF#000000##FFFFFF
##2E39A41.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e39a4;
/* rgb */ color: rgb(46, 57, 164);
/* oklch */ color: oklch(40.9% 0.170 271.8);
Tailwind
colors: {
  custom: {
    50: '#786fc0',
    500: '#2e39a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e39a4;
$custom-light: #786fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39a4",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 234.407,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4086,
    "c": 0.17044,
    "h": 271.8
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#2E39A4
secondary
#C0B86E
accent
#D148DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E39A4

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

Preview Lab → · Contrast checker → · Palette generator →

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