#2E1230#2E1230

#2E1230 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.066 H 324.8°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2E1230
RGBrgb(46, 18, 48)
HSLhsl(296, 45%, 13%)
HSVhsv(296, 63%, 19%)
CMYKcmyk(4.2%, 62.5%, 0%, 81.2%)
CIE-LABlab(10.76, 19.81, -13.83)
CIE-LCHlch(10.76, 24.16, 325.09°)
OKLaboklab(23.89% 0.0541 -0.0381)
OKLCHoklch(23.89% 0.066 324.8)
XYZxyz(1.8765, 1.2270, 2.9337)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1230 #143012
analogous
#1F1230 #2E1230 #301223
triadic
#2E1230 #302E12 #12302E
tetradic
#2E1230 #301F12 #143012 #122330
square
#2E1230 #301F12 #143012 #122330
split-complementary
#2E1230 #233012 #12301F
monochromatic
#150816 #150816 #2E1230 #59235D #833389

Accessibility & contrast

On white

16.86
#2E1230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2E1230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1230
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1230#FFFFFF#000000##FFFFFF
##2E12301.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1B31
Deuteranopia (green-blind)
#171E2F
Tritanopia (blue-blind)
#2F161E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e1230;
/* rgb */ color: rgb(46, 18, 48);
/* oklch */ color: oklch(23.9% 0.066 324.8);
Tailwind
colors: {
  custom: {
    50: '#685168',
    500: '#2e1230',
    950: '#000000',
  },
}
SCSS
$custom: #2e1230;
$custom-light: #685168;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1230",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 48
  },
  "hsl": {
    "h": 296,
    "s": 45.455,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2389,
    "c": 0.06621,
    "h": 324.8
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#2E1230
secondary
#396836
accent
#D5535B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2E1230

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

Preview Lab → · Contrast checker → · Palette generator →

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