#2E123B#2E123B

#2E123B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.080 H 313.6°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2E123B
RGBrgb(46, 18, 59)
HSLhsl(281, 53%, 15%)
HSVhsv(281, 69%, 23%)
CMYKcmyk(22%, 69.5%, 0%, 76.9%)
CIE-LABlab(11.48, 22.57, -20.63)
CIE-LCHlch(11.48, 30.58, 317.58°)
OKLaboklab(24.65% 0.0551 -0.0579)
OKLCHoklch(24.65% 0.08 313.6)
XYZxyz(2.1323, 1.3293, 4.2811)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E123B #1F3B12
analogous
#1A123B #2E123B #3B1233
triadic
#2E123B #3B2E12 #123B2E
tetradic
#2E123B #3B1A12 #1F3B12 #12333B
square
#2E123B #3B1A12 #1F3B12 #12333B
split-complementary
#2E123B #333B12 #123B1A
monochromatic
#120717 #120717 #2E123B #53206A #772F99

Accessibility & contrast

On white

16.59
#2E123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E123B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E123B
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E123B#FFFFFF#000000##FFFFFF
##2E123B1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3C
Deuteranopia (green-blind)
#101F3A
Tritanopia (blue-blind)
#2D1924
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e123b;
/* rgb */ color: rgb(46, 18, 59);
/* oklch */ color: oklch(24.7% 0.080 313.6);
Tailwind
colors: {
  custom: {
    50: '#685171',
    500: '#2e123b',
    950: '#000000',
  },
}
SCSS
$custom: #2e123b;
$custom-light: #685171;
$custom-dark: #000000;
JSON
{
  "hex": "#2e123b",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 280.976,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24655,
    "c": 0.07992,
    "h": 313.6
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#2E123B
secondary
#497435
accent
#DD4B79
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E123B

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

Preview Lab → · Contrast checker → · Palette generator →

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