#2E39B5#2E39B5

#2E39B5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.193 H 271.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2E39B5
RGBrgb(46, 57, 181)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 75%, 71%)
CMYKcmyk(74.6%, 68.5%, 0%, 29%)
CIE-LABlab(31.44, 38.62, -66.57)
CIE-LCHlch(31.44, 76.96, 300.12°)
OKLaboklab(42.48% 0.004 -0.1926)
OKLCHoklch(42.48% 0.193 271.2)
XYZxyz(10.9275, 6.8421, 44.4519)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39B5 #B5AA2E
analogous
#2E7DB5 #2E39B5 #672EB5
triadic
#2E39B5 #B52E39 #39B52E
tetradic
#2E39B5 #B52E7D #B5AA2E #2EB567
square
#2E39B5 #B52E7D #B5AA2E #2EB567
split-complementary
#2E39B5 #B5672E #7DB52E
monochromatic
#151A53 #222A84 #2E39B5 #4E59D2 #7F87DE

Accessibility & contrast

On white

8.87
#2E39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2E39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39B5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39B5#FFFFFF#000000##FFFFFF
##2E39B51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e39b5;
/* rgb */ color: rgb(46, 57, 181);
/* oklch */ color: oklch(42.5% 0.193 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#2e39b5',
    950: '#000000',
  },
}
SCSS
$custom: #2e39b5;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39b5",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 235.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42479,
    "c": 0.19262,
    "h": 271.2
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#2E39B5
secondary
#C7C178
accent
#D645E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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