#2E1D87#2E1D87

#2E1D87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 280.1°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2E1D87
RGBrgb(46, 29, 135)
HSLhsl(250, 65%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(65.9%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.86, 39.52, -55.94)
CIE-LCHlch(20.86, 68.49, 305.24°)
OKLaboklab(33.52% 0.0289 -0.1615)
OKLCHoklch(33.52% 0.164 280.1)
XYZxyz(5.9379, 3.2084, 23.2233)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D87 #76871D
analogous
#1D4187 #2E1D87 #631D87
triadic
#2E1D87 #872E1D #1D872E
tetradic
#2E1D87 #871D41 #76871D #1D8763
square
#2E1D87 #871D41 #76871D #1D8763
split-complementary
#2E1D87 #87631D #41871D
monochromatic
#0C0722 #1D1255 #2E1D87 #3F28B9 #5E47D7

Accessibility & contrast

On white

12.79
#2E1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D87
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D87#FFFFFF#000000##FFFFFF
##2E1D871.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1d87;
/* rgb */ color: rgb(46, 29, 135);
/* oklch */ color: oklch(33.5% 0.164 280.1);
Tailwind
colors: {
  custom: {
    50: '#745cab',
    500: '#2e1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d87;
$custom-light: #745cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d87",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 249.623,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33522,
    "c": 0.16404,
    "h": 280.1
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#2E1D87
secondary
#A7B946
accent
#E840CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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