#2E0740#2E0740

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

Color values

HEX#2E0740
RGBrgb(46, 7, 64)
HSLhsl(281, 80%, 14%)
HSVhsv(281, 89%, 25%)
CMYKcmyk(28.1%, 89.1%, 0%, 74.9%)
CIE-LABlab(9.82, 29.62, -26.86)
CIE-LCHlch(9.82, 39.99, 317.80°)
OKLaboklab(23.6% 0.0688 -0.0761)
OKLCHoklch(23.6% 0.103 312.1)
XYZxyz(2.1279, 1.1030, 4.9503)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0740 #194007
analogous
#120740 #2E0740 #400736
triadic
#2E0740 #402E07 #07402E
tetradic
#2E0740 #401207 #194007 #073640
square
#2E0740 #401207 #194007 #073640
split-complementary
#2E0740 #364007 #074012
monochromatic
#14031C #14031C #2E0740 #560D77 #7D13AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E0740#FFFFFF#000000##FFFFFF
##2E07401.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)
#001942
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#2C1523
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0740;
/* rgb */ color: rgb(46, 7, 64);
/* oklch */ color: oklch(23.6% 0.103 312.1);
Tailwind
colors: {
  custom: {
    50: '#6a4c75',
    500: '#2e0740',
    950: '#000000',
  },
}
SCSS
$custom: #2e0740;
$custom-light: #6a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0740",
  "rgb": {
    "r": 46,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 281.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23597,
    "c": 0.1026,
    "h": 312.1
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#2E0740
secondary
#417F24
accent
#F7316F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0740

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

Preview Lab → · Contrast checker → · Palette generator →

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