#2E1238#2E1238

#2E1238 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.076 H 316.3°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1238
RGBrgb(46, 18, 56)
HSLhsl(284, 51%, 15%)
HSVhsv(284, 68%, 22%)
CMYKcmyk(17.9%, 67.9%, 0%, 78%)
CIE-LABlab(11.27, 21.79, -18.82)
CIE-LCHlch(11.27, 28.79, 319.19°)
OKLaboklab(24.43% 0.055 -0.0526)
OKLCHoklch(24.43% 0.076 316.3)
XYZxyz(2.0567, 1.2990, 3.8830)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1238 #1C3812
analogous
#1B1238 #2E1238 #38122F
triadic
#2E1238 #382E12 #12382E
tetradic
#2E1238 #381B12 #1C3812 #122F38
square
#2E1238 #381B12 #1C3812 #122F38
split-complementary
#2E1238 #2F3812 #12381B
monochromatic
#130717 #130717 #2E1238 #542166 #7A3095

Accessibility & contrast

On white

16.67
#2E1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2E1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1238
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1238#FFFFFF#000000##FFFFFF
##2E12381.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#121F37
Tritanopia (blue-blind)
#2D1822
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e1238;
/* rgb */ color: rgb(46, 18, 56);
/* oklch */ color: oklch(24.4% 0.076 316.3);
Tailwind
colors: {
  custom: {
    50: '#68516f',
    500: '#2e1238',
    950: '#000000',
  },
}
SCSS
$custom: #2e1238;
$custom-light: #68516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1238",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 284.211,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24434,
    "c": 0.0761,
    "h": 316.3
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#2E1238
secondary
#457135
accent
#DB4D72
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1238

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

Preview Lab → · Contrast checker → · Palette generator →

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