#2E0640#2E0640

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

Color values

HEX#2E0640
RGBrgb(46, 6, 64)
HSLhsl(281, 83%, 14%)
HSVhsv(281, 91%, 25%)
CMYKcmyk(28.1%, 90.6%, 0%, 74.9%)
CIE-LABlab(9.65, 30.12, -27.14)
CIE-LCHlch(9.65, 40.54, 317.98°)
OKLaboklab(23.48% 0.07 -0.0769)
OKLCHoklch(23.48% 0.104 312.3)
XYZxyz(2.1171, 1.0813, 4.9467)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0640 #184006
analogous
#110640 #2E0640 #400635
triadic
#2E0640 #402E06 #06402E
tetradic
#2E0640 #401106 #184006 #063540
square
#2E0640 #401106 #184006 #063540
split-complementary
#2E0640 #354006 #064011
monochromatic
#14031C #14031C #2E0640 #560B78 #7E10B0

Accessibility & contrast

On white

17.27
#2E0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0640
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0640#FFFFFF#000000##FFFFFF
##2E06401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#2C1423
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0640;
/* rgb */ color: rgb(46, 6, 64);
/* oklch */ color: oklch(23.5% 0.104 312.3);
Tailwind
colors: {
  custom: {
    50: '#6a4b75',
    500: '#2e0640',
    950: '#000000',
  },
}
SCSS
$custom: #2e0640;
$custom-light: #6a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0640",
  "rgb": {
    "r": 46,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 281.379,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23478,
    "c": 0.10399,
    "h": 312.3
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#2E0640
secondary
#3F8022
accent
#F92F6D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0640

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

Preview Lab → · Contrast checker → · Palette generator →

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