#2C2838#2C2838

#2C2838 is a dark, muted violet. Relative luminance 0.023; OKLCH L 28.8% C 0.029 H 296.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2C2838
RGBrgb(44, 40, 56)
HSLhsl(255, 17%, 19%)
HSVhsv(255, 29%, 22%)
CMYKcmyk(21.4%, 28.6%, 0%, 78%)
CIE-LABlab(17.17, 5.93, -9.62)
CIE-LCHlch(17.17, 11.30, 301.67°)
OKLaboklab(28.82% 0.0128 -0.0264)
OKLCHoklch(28.82% 0.029 296)
XYZxyz(2.5112, 2.3386, 4.0597)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2838 #343828
analogous
#282C38 #2C2838 #342838
triadic
#2C2838 #382C28 #28382C
tetradic
#2C2838 #38282C #343828 #283834
square
#2C2838 #38282C #343828 #283834
split-complementary
#2C2838 #383428 #2C3828
monochromatic
#0E0D12 #100F14 #2C2838 #48425C #645B7F

Accessibility & contrast

On white

14.31
#2C2838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2838
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2838#FFFFFF#000000##FFFFFF
##2C28381.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252A39
Deuteranopia (green-blind)
#252A38
Tritanopia (blue-blind)
#2A2A2E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c2838;
/* rgb */ color: rgb(44, 40, 56);
/* oklch */ color: oklch(28.8% 0.029 296.0);
Tailwind
colors: {
  custom: {
    50: '#65616e',
    500: '#2c2838',
    950: '#000000',
  },
}
SCSS
$custom: #2c2838;
$custom-light: #65616e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2838",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 255,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28823,
    "c": 0.02932,
    "h": 296
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#2C2838
secondary
#636953
accent
#B96EA7
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050507
muted
#7A797A

Preview Lab

Preview with #2C2838

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

Preview Lab → · Contrast checker → · Palette generator →

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