#2C2840#2C2840

#2C2840 is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.3% C 0.043 H 291.1°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2C2840
RGBrgb(44, 40, 64)
HSLhsl(250, 23%, 20%)
HSVhsv(250, 38%, 25%)
CMYKcmyk(31.2%, 37.5%, 0%, 74.9%)
CIE-LABlab(17.57, 8.30, -14.56)
CIE-LCHlch(17.57, 16.76, 299.68°)
OKLaboklab(29.26% 0.0156 -0.0404)
OKLCHoklch(29.26% 0.043 291.1)
XYZxyz(2.7227, 2.4232, 5.1738)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2840 #3C4028
analogous
#283040 #2C2840 #382840
triadic
#2C2840 #402C28 #28402C
tetradic
#2C2840 #402830 #3C4028 #284038
square
#2C2840 #402830 #3C4028 #284038
split-complementary
#2C2840 #403828 #304028
monochromatic
#0D0C13 #12101A #2C2840 #464066 #60578B

Accessibility & contrast

On white

14.15
#2C2840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2840
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2840#FFFFFF#000000##FFFFFF
##2C28401.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222B41
Deuteranopia (green-blind)
#222B3F
Tritanopia (blue-blind)
#282C31
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c2840;
/* rgb */ color: rgb(44, 40, 64);
/* oklch */ color: oklch(29.3% 0.043 291.1);
Tailwind
colors: {
  custom: {
    50: '#666175',
    500: '#2c2840',
    950: '#000000',
  },
}
SCSS
$custom: #2c2840;
$custom-light: #666175;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2840",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 250,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29258,
    "c": 0.04335,
    "h": 291.1
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2C2840
secondary
#6C7252
accent
#C068B1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2C2840

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

Preview Lab → · Contrast checker → · Palette generator →

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