#2E0542#2E0542

#2E0542 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.107 H 311.1°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2E0542
RGBrgb(46, 5, 66)
HSLhsl(280, 86%, 14%)
HSVhsv(280, 92%, 26%)
CMYKcmyk(30.3%, 92.4%, 0%, 74.1%)
CIE-LABlab(9.66, 31.10, -28.54)
CIE-LCHlch(9.66, 42.21, 317.46°)
OKLaboklab(23.54% 0.0707 -0.081)
OKLCHoklch(23.54% 0.107 311.1)
XYZxyz(2.1642, 1.0828, 5.2482)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0542 #194205
analogous
#100542 #2E0542 #420538
triadic
#2E0542 #422E05 #05422E
tetradic
#2E0542 #421005 #194205 #053842
square
#2E0542 #421005 #194205 #053842
split-complementary
#2E0542 #384205 #054210
monochromatic
#14021C #14021C #2E0542 #56097B #7D0EB4

Accessibility & contrast

On white

17.26
#2E0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2E0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0542
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0542#FFFFFF#000000##FFFFFF
##2E05421.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#2B1524
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0542;
/* rgb */ color: rgb(46, 5, 66);
/* oklch */ color: oklch(23.5% 0.107 311.1);
Tailwind
colors: {
  custom: {
    50: '#6a4b77',
    500: '#2e0542',
    950: '#000000',
  },
}
SCSS
$custom: #2e0542;
$custom-light: #6a4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0542",
  "rgb": {
    "r": 46,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 280.328,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23543,
    "c": 0.10747,
    "h": 311.1
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#2E0542
secondary
#418220
accent
#FC2C70
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0542

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

Preview Lab → · Contrast checker → · Palette generator →

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