#2E39A2#2E39A2

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

Color values

HEX#2E39A2
RGBrgb(46, 57, 162)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 72%, 64%)
CMYKcmyk(71.6%, 64.8%, 0%, 36.5%)
CIE-LABlab(29.70, 31.83, -58.05)
CIE-LCHlch(29.70, 66.20, 298.74°)
OKLaboklab(40.67% 0.0055 -0.1677)
OKLCHoklch(40.67% 0.168 271.9)
XYZxyz(9.1092, 6.1148, 34.8756)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39A2 #A2972E
analogous
#2E73A2 #2E39A2 #5D2EA2
triadic
#2E39A2 #A22E39 #39A22E
tetradic
#2E39A2 #A22E73 #A2972E #2EA25D
square
#2E39A2 #A22E73 #A2972E #2EA25D
split-complementary
#2E39A2 #A25D2E #73A22E
monochromatic
#131743 #202872 #2E39A2 #4350CA #737DD7

Accessibility & contrast

On white

9.45
#2E39A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E39A2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39A2#FFFFFF#000000##FFFFFF
##2E39A21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e39a2;
/* rgb */ color: rgb(46, 57, 162);
/* oklch */ color: oklch(40.7% 0.168 271.9);
Tailwind
colors: {
  custom: {
    50: '#776fbe',
    500: '#2e39a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e39a2;
$custom-light: #776fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39a2",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 234.31,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40675,
    "c": 0.16775,
    "h": 271.9
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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