#2E39B8#2E39B8

#2E39B8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.196 H 271.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2E39B8
RGBrgb(46, 57, 184)
HSLhsl(235, 60%, 45%)
HSVhsv(235, 75%, 72%)
CMYKcmyk(75%, 69%, 0%, 27.8%)
CIE-LABlab(31.73, 39.68, -67.87)
CIE-LCHlch(31.73, 78.62, 300.31°)
OKLaboklab(42.77% 0.0036 -0.1964)
OKLCHoklch(42.77% 0.196 271.1)
XYZxyz(11.2386, 6.9666, 46.0905)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E39B8 #B8AD2E
analogous
#2E7EB8 #2E39B8 #682EB8
triadic
#2E39B8 #B82E39 #39B82E
tetradic
#2E39B8 #B82E7E #B8AD2E #2EB868
square
#2E39B8 #B82E7E #B8AD2E #2EB868
split-complementary
#2E39B8 #B8682E #7EB82E
monochromatic
#161B56 #222A87 #2E39B8 #505AD3 #8188DF

Accessibility & contrast

On white

8.77
#2E39B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2E39B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E39B8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E39B8#FFFFFF#000000##FFFFFF
##2E39B81.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e39b8;
/* rgb */ color: rgb(46, 57, 184);
/* oklch */ color: oklch(42.8% 0.196 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c70ce',
    500: '#2e39b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e39b8;
$custom-light: #7c70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e39b8",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 235.217,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42773,
    "c": 0.19643,
    "h": 271.1
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#2E39B8
secondary
#C8C279
accent
#D745E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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