#2E1A38#2E1A38

#2E1A38 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 25.9% C 0.060 H 313.6°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2E1A38
RGBrgb(46, 26, 56)
HSLhsl(280, 37%, 16%)
HSVhsv(280, 54%, 22%)
CMYKcmyk(17.9%, 53.6%, 0%, 78%)
CIE-LABlab(13.26, 16.58, -15.67)
CIE-LCHlch(13.26, 22.81, 316.62°)
OKLaboklab(25.91% 0.0414 -0.0435)
OKLCHoklch(25.91% 0.06 313.6)
XYZxyz(2.2098, 1.6052, 3.9340)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A38 #24381A
analogous
#1F1A38 #2E1A38 #381A33
triadic
#2E1A38 #382E1A #1A382E
tetradic
#2E1A38 #381F1A #24381A #1A3338
square
#2E1A38 #381F1A #24381A #1A3338
split-complementary
#2E1A38 #33381A #1A381F
monochromatic
#110A15 #110A15 #2E1A38 #502D62 #73418C

Accessibility & contrast

On white

15.90
#2E1A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A38
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A38#FFFFFF#000000##FFFFFF
##2E1A381.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142139
Deuteranopia (green-blind)
#192337
Tritanopia (blue-blind)
#2D1E26
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1a38;
/* rgb */ color: rgb(46, 26, 56);
/* oklch */ color: oklch(25.9% 0.060 313.6);
Tailwind
colors: {
  custom: {
    50: '#67576e',
    500: '#2e1a38',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a38;
$custom-light: #67576e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a38",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 280,
    "s": 36.585,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25906,
    "c": 0.06004,
    "h": 313.6
  },
  "luminance": 0.01605
}

Semantic roles & 50–950 ramp

primary
#2E1A38
secondary
#4F6D41
accent
#CD5B81
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E1A38

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

Preview Lab → · Contrast checker → · Palette generator →

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