#2E0538#2E0538

#2E0538 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.097 H 318.8°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#2E0538
RGBrgb(46, 5, 56)
HSLhsl(288, 84%, 12%)
HSVhsv(288, 91%, 22%)
CMYKcmyk(17.9%, 91.1%, 0%, 78%)
CIE-LABlab(8.78, 28.76, -22.80)
CIE-LCHlch(8.78, 36.70, 321.59°)
OKLaboklab(22.65% 0.0732 -0.0641)
OKLCHoklch(22.65% 0.097 318.8)
XYZxyz(1.8947, 0.9750, 3.8290)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0538 #0F3805
analogous
#150538 #2E0538 #380529
triadic
#2E0538 #382E05 #05382E
tetradic
#2E0538 #381505 #0F3805 #052938
square
#2E0538 #381505 #0F3805 #052938
split-complementary
#2E0538 #293805 #053815
monochromatic
#17031C #17031C #2E0538 #5C0A70 #8A0FA8

Accessibility & contrast

On white

17.57
#2E0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2E0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0538
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0538#FFFFFF#000000##FFFFFF
##2E05381.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#081A37
Tritanopia (blue-blind)
#2E101E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2e0538;
/* rgb */ color: rgb(46, 5, 56);
/* oklch */ color: oklch(22.6% 0.097 318.8);
Tailwind
colors: {
  custom: {
    50: '#694a6f',
    500: '#2e0538',
    950: '#000000',
  },
}
SCSS
$custom: #2e0538;
$custom-light: #694a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0538",
  "rgb": {
    "r": 46,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 288.235,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22649,
    "c": 0.09728,
    "h": 318.8
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#2E0538
secondary
#317920
accent
#FA2E56
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2E0538

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

Preview Lab → · Contrast checker → · Palette generator →

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