#2E3987#2E3987

#2E3987 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.130 H 272.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2E3987
RGBrgb(46, 57, 135)
HSLhsl(233, 49%, 35%)
HSVhsv(233, 66%, 53%)
CMYKcmyk(65.9%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.45, 21.91, -45.16)
CIE-LCHlch(27.45, 50.20, 295.88°)
OKLaboklab(38.31% 0.006 -0.1298)
OKLCHoklch(38.31% 0.13 272.6)
XYZxyz(6.9616, 5.2558, 23.5646)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3987 #877C2E
analogous
#2E6587 #2E3987 #4F2E87
triadic
#2E3987 #872E39 #39872E
tetradic
#2E3987 #872E65 #877C2E #2E874F
square
#2E3987 #872E65 #877C2E #2E874F
split-complementary
#2E3987 #874F2E #65872E
monochromatic
#0F122C #1E2659 #2E3987 #3E4CB5 #6571CA

Accessibility & contrast

On white

10.24
#2E3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2E3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3987
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3987#FFFFFF#000000##FFFFFF
##2E39871.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e3987;
/* rgb */ color: rgb(46, 57, 135);
/* oklch */ color: oklch(38.3% 0.130 272.6);
Tailwind
colors: {
  custom: {
    50: '#716fab',
    500: '#2e3987',
    950: '#000000',
  },
}
SCSS
$custom: #2e3987;
$custom-light: #716fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3987",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 232.584,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.12996,
    "h": 272.6
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#2E3987
secondary
#B1A760
accent
#C84FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2E3987

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

Preview Lab → · Contrast checker → · Palette generator →

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