#2E39B2#2E39B2

#2E39B2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.189 H 271.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2E39B2
RGBrgb(46, 57, 178)
HSLhsl(235, 59%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(74.2%, 68%, 0%, 30.2%)
CIE-LABlab(31.16, 37.56, -65.25)
CIE-LCHlch(31.16, 75.29, 299.93°)
OKLaboklab(42.19% 0.0043 -0.1887)
OKLCHoklch(42.19% 0.189 271.3)
XYZxyz(10.6230, 6.7203, 42.8482)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39B2 #B2A72E
analogous
#2E7BB2 #2E39B2 #652EB2
triadic
#2E39B2 #B22E39 #39B22E
tetradic
#2E39B2 #B22E7B #B2A72E #2EB265
square
#2E39B2 #B22E7B #B2A72E #2EB265
split-complementary
#2E39B2 #B2652E #7BB22E
monochromatic
#151A51 #212981 #2E39B2 #4C57D1 #7D85DD

Accessibility & contrast

On white

8.96
#2E39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2E39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39B2
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39B2#FFFFFF#000000##FFFFFF
##2E39B21.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e39b2;
/* rgb */ color: rgb(46, 57, 178);
/* oklch */ color: oklch(42.2% 0.189 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b70ca',
    500: '#2e39b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e39b2;
$custom-light: #7b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39b2",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 235,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42188,
    "c": 0.18878,
    "h": 271.3
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#2E39B2
secondary
#C6BF76
accent
#D546E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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