#2E2587#2E2587

#2E2587 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.155 H 278.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2E2587
RGBrgb(46, 37, 135)
HSLhsl(246, 57%, 34%)
HSVhsv(246, 73%, 53%)
CMYKcmyk(65.9%, 72.6%, 0%, 47.1%)
CIE-LABlab(22.49, 34.94, -53.26)
CIE-LCHlch(22.49, 63.70, 303.27°)
OKLaboklab(34.68% 0.0234 -0.1537)
OKLCHoklch(34.68% 0.155 278.6)
XYZxyz(6.1601, 3.6528, 23.2974)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2587 #7E8725
analogous
#254D87 #2E2587 #5F2587
triadic
#2E2587 #872E25 #25872E
tetradic
#2E2587 #87254D #7E8725 #25875F
square
#2E2587 #87254D #7E8725 #25875F
split-complementary
#2E2587 #875F25 #4D8725
monochromatic
#0D0B27 #1E1857 #2E2587 #3E32B7 #6156D1

Accessibility & contrast

On white

12.13
#2E2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2587
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2587#FFFFFF#000000##FFFFFF
##2E25871.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2587;
/* rgb */ color: rgb(46, 37, 135);
/* oklch */ color: oklch(34.7% 0.155 278.6);
Tailwind
colors: {
  custom: {
    50: '#7361ab',
    500: '#2e2587',
    950: '#000000',
  },
}
SCSS
$custom: #2e2587;
$custom-light: #7361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2587",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 245.51,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34676,
    "c": 0.15546,
    "h": 278.6
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#2E2587
secondary
#ACB553
accent
#E048D2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2587

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

Preview Lab → · Contrast checker → · Palette generator →

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