#2E0231#2E0231

#2E0231 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.096 H 325.4°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#2E0231
RGBrgb(46, 2, 49)
HSLhsl(296, 92%, 10%)
HSVhsv(296, 96%, 19%)
CMYKcmyk(6.1%, 95.9%, 0%, 80.8%)
CIE-LABlab(7.64, 28.92, -19.50)
CIE-LCHlch(7.64, 34.88, 326.01°)
OKLaboklab(21.67% 0.0788 -0.0544)
OKLCHoklch(21.67% 0.096 325.4)
XYZxyz(1.7028, 0.8461, 2.9788)
Luminance0.0085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0231 #053102
analogous
#160231 #2E0231 #31021D
triadic
#2E0231 #312E02 #02312E
tetradic
#2E0231 #311602 #053102 #021D31
square
#2E0231 #311602 #053102 #021D31
split-complementary
#2E0231 #1D3102 #023116
monochromatic
#1C011D #1C011D #2E0231 #65046C #9C07A7

Accessibility & contrast

On white

17.96
#2E0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2E0231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0231
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0231#FFFFFF#000000##FFFFFF
##2E02311.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#0C1930
Tritanopia (blue-blind)
#2F0A19
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2e0231;
/* rgb */ color: rgb(46, 2, 49);
/* oklch */ color: oklch(21.7% 0.096 325.4);
Tailwind
colors: {
  custom: {
    50: '#694869',
    500: '#2e0231',
    950: '#000000',
  },
}
SCSS
$custom: #2e0231;
$custom-light: #694869;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0231",
  "rgb": {
    "r": 46,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 296.17,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21665,
    "c": 0.09582,
    "h": 325.4
  },
  "luminance": 0.00846
}

Semantic roles & 50–950 ramp

primary
#2E0231
secondary
#1F7519
accent
#FF2936
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2E0231

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

Preview Lab → · Contrast checker → · Palette generator →

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