#2E123A#2E123A

#2E123A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.079 H 314.5°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2E123A
RGBrgb(46, 18, 58)
HSLhsl(282, 53%, 15%)
HSVhsv(282, 69%, 23%)
CMYKcmyk(20.7%, 69%, 0%, 77.3%)
CIE-LABlab(11.41, 22.31, -20.03)
CIE-LCHlch(11.41, 29.98, 318.09°)
OKLaboklab(24.58% 0.0551 -0.0561)
OKLCHoklch(24.58% 0.079 314.5)
XYZxyz(2.1066, 1.3190, 4.1458)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E123A #1E3A12
analogous
#1A123A #2E123A #3A1232
triadic
#2E123A #3A2E12 #123A2E
tetradic
#2E123A #3A1A12 #1E3A12 #12323A
square
#2E123A #3A1A12 #1E3A12 #12323A
split-complementary
#2E123A #323A12 #123A1A
monochromatic
#130717 #130717 #2E123A #532069 #782F97

Accessibility & contrast

On white

16.62
#2E123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2E123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E123A
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E123A#FFFFFF#000000##FFFFFF
##2E123A1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3B
Deuteranopia (green-blind)
#111F39
Tritanopia (blue-blind)
#2D1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e123a;
/* rgb */ color: rgb(46, 18, 58);
/* oklch */ color: oklch(24.6% 0.079 314.5);
Tailwind
colors: {
  custom: {
    50: '#685170',
    500: '#2e123a',
    950: '#000000',
  },
}
SCSS
$custom: #2e123a;
$custom-light: #685170;
$custom-dark: #000000;
JSON
{
  "hex": "#2e123a",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 282,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2458,
    "c": 0.07864,
    "h": 314.5
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#2E123A
secondary
#487335
accent
#DC4C77
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E123A

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

Preview Lab → · Contrast checker → · Palette generator →

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