#2E2838#2E2838

#2E2838 is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.0% C 0.030 H 301.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2E2838
RGBrgb(46, 40, 56)
HSLhsl(263, 17%, 19%)
HSVhsv(263, 29%, 22%)
CMYKcmyk(17.9%, 28.6%, 0%, 78%)
CIE-LABlab(17.39, 6.74, -9.28)
CIE-LCHlch(17.39, 11.47, 305.99°)
OKLaboklab(29.04% 0.0157 -0.0253)
OKLCHoklch(29.04% 0.03 301.7)
XYZxyz(2.5992, 2.3839, 4.0638)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2838 #323828
analogous
#282A38 #2E2838 #362838
triadic
#2E2838 #382E28 #28382E
tetradic
#2E2838 #38282A #323828 #283836
square
#2E2838 #38282A #323828 #283836
split-complementary
#2E2838 #383628 #2A3828
monochromatic
#0F0D12 #110F14 #2E2838 #4B425C #695B7F

Accessibility & contrast

On white

14.22
#2E2838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E2838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2838
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2838#FFFFFF#000000##FFFFFF
##2E28381.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252B39
Deuteranopia (green-blind)
#262B38
Tritanopia (blue-blind)
#2C2A2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e2838;
/* rgb */ color: rgb(46, 40, 56);
/* oklch */ color: oklch(29.0% 0.030 301.7);
Tailwind
colors: {
  custom: {
    50: '#67616e',
    500: '#2e2838',
    950: '#000000',
  },
}
SCSS
$custom: #2e2838;
$custom-light: #67616e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2838",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 262.5,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.0298,
    "h": 301.7
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#2E2838
secondary
#616953
accent
#B96E9D
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060507
muted
#7A797A

Preview Lab

Preview with #2E2838

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

Preview Lab → · Contrast checker → · Palette generator →

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