#2E2836#2E2836

#2E2836 is a dark, muted violet. Relative luminance 0.024; OKLCH L 28.9% C 0.026 H 304.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2E2836
RGBrgb(46, 40, 54)
HSLhsl(266, 15%, 18%)
HSVhsv(266, 26%, 21%)
CMYKcmyk(14.8%, 25.9%, 0%, 78.8%)
CIE-LABlab(17.30, 6.19, -8.02)
CIE-LCHlch(17.30, 10.13, 307.67°)
OKLaboklab(28.94% 0.0149 -0.0218)
OKLCHoklch(28.94% 0.026 304.3)
XYZxyz(2.5512, 2.3648, 3.8114)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2836 #303628
analogous
#282936 #2E2836 #352836
triadic
#2E2836 #362E28 #28362E
tetradic
#2E2836 #362829 #303628 #283635
square
#2E2836 #362829 #303628 #283635
split-complementary
#2E2836 #363528 #293628
monochromatic
#0F0D12 #100E13 #2E2836 #4C4259 #6A5C7C

Accessibility & contrast

On white

14.26
#2E2836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E2836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2836
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2836#FFFFFF#000000##FFFFFF
##2E28361.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252A37
Deuteranopia (green-blind)
#272B36
Tritanopia (blue-blind)
#2D2A2D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2836;
/* rgb */ color: rgb(46, 40, 54);
/* oklch */ color: oklch(28.9% 0.026 304.3);
Tailwind
colors: {
  custom: {
    50: '#66616d',
    500: '#2e2836',
    950: '#000000',
  },
}
SCSS
$custom: #2e2836;
$custom-light: #66616d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2836",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 54
  },
  "hsl": {
    "h": 265.714,
    "s": 14.894,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28941,
    "c": 0.02642,
    "h": 304.3
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#2E2836
secondary
#5E6753
accent
#B87099
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060507
muted
#7A797A

Preview Lab

Preview with #2E2836

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

Preview Lab → · Contrast checker → · Palette generator →

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