#2C2242#2C2242

#2C2242 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.0% C 0.058 H 296.9°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2C2242
RGBrgb(44, 34, 66)
HSLhsl(259, 32%, 20%)
HSVhsv(259, 48%, 26%)
CMYKcmyk(33.3%, 48.5%, 0%, 74.1%)
CIE-LABlab(15.86, 13.19, -18.62)
CIE-LCHlch(15.86, 22.82, 305.31°)
OKLaboklab(28% 0.0264 -0.0521)
OKLCHoklch(28% 0.058 296.9)
XYZxyz(2.5939, 2.0728, 5.4166)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2242 #384222
analogous
#222842 #2C2242 #3C2242
triadic
#2C2242 #422C22 #22422C
tetradic
#2C2242 #422228 #384222 #22423C
square
#2C2242 #422228 #384222 #22423C
split-complementary
#2C2242 #423C22 #284222
monochromatic
#0D0A14 #110D1A #2C2242 #47376A #624C93

Accessibility & contrast

On white

14.85
#2C2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C2242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2242
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2242#FFFFFF#000000##FFFFFF
##2C22421.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192843
Deuteranopia (green-blind)
#1A2741
Tritanopia (blue-blind)
#27282E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c2242;
/* rgb */ color: rgb(44, 34, 66);
/* oklch */ color: oklch(28.0% 0.058 296.9);
Tailwind
colors: {
  custom: {
    50: '#665d76',
    500: '#2c2242',
    950: '#000000',
  },
}
SCSS
$custom: #2c2242;
$custom-light: #665d76;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2242",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 258.75,
    "s": 32,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27999,
    "c": 0.05845,
    "h": 296.9
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#2C2242
secondary
#68754A
accent
#C860A7
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2C2242

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

Preview Lab → · Contrast checker → · Palette generator →

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