#2E2139#2E2139

#2E2139 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.5% C 0.047 H 308.4°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E2139
RGBrgb(46, 33, 57)
HSLhsl(273, 27%, 18%)
HSVhsv(273, 42%, 22%)
CMYKcmyk(19.3%, 42.1%, 0%, 77.6%)
CIE-LABlab(15.30, 11.97, -13.20)
CIE-LCHlch(15.30, 17.82, 312.21°)
OKLaboklab(27.46% 0.0289 -0.0364)
OKLCHoklch(27.46% 0.047 308.4)
XYZxyz(2.4090, 1.9640, 4.1223)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2139 #2C3921
analogous
#222139 #2E2139 #392138
triadic
#2E2139 #392E21 #21392E
tetradic
#2E2139 #392221 #2C3921 #213839
square
#2E2139 #392221 #2C3921 #213839
split-complementary
#2E2139 #383921 #213922
monochromatic
#100B13 #100B13 #2E2139 #4D3760 #6D4E87

Accessibility & contrast

On white

15.08
#2E2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2139
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2139#FFFFFF#000000##FFFFFF
##2E21391.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C263A
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#2D242A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e2139;
/* rgb */ color: rgb(46, 33, 57);
/* oklch */ color: oklch(27.5% 0.047 308.4);
Tailwind
colors: {
  custom: {
    50: '#675c6f',
    500: '#2e2139',
    950: '#000000',
  },
}
SCSS
$custom: #2e2139;
$custom-light: #675c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2139",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 272.5,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27457,
    "c": 0.04651,
    "h": 308.4
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#2E2139
secondary
#596C4A
accent
#C36590
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2E2139

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

Preview Lab → · Contrast checker → · Palette generator →

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