#2C2240#2C2240

#2C2240 is a dark, muted violet. Relative luminance 0.021; OKLCH L 27.9% C 0.055 H 298.1°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2C2240
RGBrgb(44, 34, 64)
HSLhsl(260, 31%, 19%)
HSVhsv(260, 47%, 25%)
CMYKcmyk(31.2%, 46.9%, 0%, 74.9%)
CIE-LABlab(15.75, 12.57, -17.41)
CIE-LCHlch(15.75, 21.48, 305.82°)
OKLaboklab(27.87% 0.026 -0.0486)
OKLCHoklch(27.87% 0.055 298.1)
XYZxyz(2.5359, 2.0497, 5.1115)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2240 #364022
analogous
#222740 #2C2240 #3B2240
triadic
#2C2240 #402C22 #22402C
tetradic
#2C2240 #402227 #364022 #22403B
square
#2C2240 #402227 #364022 #22403B
split-complementary
#2C2240 #403B22 #274022
monochromatic
#0E0B14 #110D18 #2C2240 #473768 #634C90

Accessibility & contrast

On white

14.89
#2C2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2240
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2240#FFFFFF#000000##FFFFFF
##2C22401.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2741
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#28272D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c2240;
/* rgb */ color: rgb(44, 34, 64);
/* oklch */ color: oklch(27.9% 0.055 298.1);
Tailwind
colors: {
  custom: {
    50: '#665d75',
    500: '#2c2240',
    950: '#000000',
  },
}
SCSS
$custom: #2c2240;
$custom-light: #665d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2240",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 260,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2787,
    "c": 0.05515,
    "h": 298.1
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#2C2240
secondary
#66734B
accent
#C761A5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2C2240

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

Preview Lab → · Contrast checker → · Palette generator →

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