#2E0642#2E0642

#2E0642 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.106 H 310.9°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#2E0642
RGBrgb(46, 6, 66)
HSLhsl(280, 83%, 14%)
HSVhsv(280, 91%, 26%)
CMYKcmyk(30.3%, 90.9%, 0%, 74.1%)
CIE-LABlab(9.83, 30.60, -28.26)
CIE-LCHlch(9.83, 41.66, 317.28°)
OKLaboklab(23.66% 0.0695 -0.0802)
OKLCHoklch(23.66% 0.106 310.9)
XYZxyz(2.1750, 1.1045, 5.2518)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0642 #1A4206
analogous
#100642 #2E0642 #420638
triadic
#2E0642 #422E06 #06422E
tetradic
#2E0642 #421006 #1A4206 #063842
square
#2E0642 #421006 #1A4206 #063842
split-complementary
#2E0642 #384206 #064210
monochromatic
#14031C #14031C #2E0642 #550B7A #7C10B2

Accessibility & contrast

On white

17.20
#2E0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0642
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0642#FFFFFF#000000##FFFFFF
##2E06421.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0642;
/* rgb */ color: rgb(46, 6, 66);
/* oklch */ color: oklch(23.7% 0.106 310.9);
Tailwind
colors: {
  custom: {
    50: '#6a4b77',
    500: '#2e0642',
    950: '#000000',
  },
}
SCSS
$custom: #2e0642;
$custom-light: #6a4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0642",
  "rgb": {
    "r": 46,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 280,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23662,
    "c": 0.10609,
    "h": 310.9
  },
  "luminance": 0.01104
}

Semantic roles & 50–950 ramp

primary
#2E0642
secondary
#428222
accent
#FA2E72
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0642

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

Preview Lab → · Contrast checker → · Palette generator →

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