#2C2040#2C2040

#2C2040 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.4% C 0.059 H 299.8°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2C2040
RGBrgb(44, 32, 64)
HSLhsl(263, 33%, 19%)
HSVhsv(263, 50%, 25%)
CMYKcmyk(31.2%, 50%, 0%, 74.9%)
CIE-LABlab(15.16, 13.99, -18.33)
CIE-LCHlch(15.16, 23.06, 307.35°)
OKLaboklab(27.43% 0.0294 -0.0513)
OKLCHoklch(27.43% 0.059 299.8)
XYZxyz(2.4804, 1.9386, 5.0930)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2040 #344020
analogous
#202440 #2C2040 #3C2040
triadic
#2C2040 #402C20 #20402C
tetradic
#2C2040 #402024 #344020 #20403C
square
#2C2040 #402024 #344020 #20403C
split-complementary
#2C2040 #403C20 #244020
monochromatic
#0E0A14 #100C17 #2C2040 #483469 #644992

Accessibility & contrast

On white

15.13
#2C2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C2040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2040
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2040#FFFFFF#000000##FFFFFF
##2C20401.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#19263F
Tritanopia (blue-blind)
#28262C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c2040;
/* rgb */ color: rgb(44, 32, 64);
/* oklch */ color: oklch(27.4% 0.059 299.8);
Tailwind
colors: {
  custom: {
    50: '#665b75',
    500: '#2c2040',
    950: '#000000',
  },
}
SCSS
$custom: #2c2040;
$custom-light: #665b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2040",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 262.5,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27429,
    "c": 0.05914,
    "h": 299.8
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#2C2040
secondary
#637448
accent
#C95EA1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2C2040

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

Preview Lab → · Contrast checker → · Palette generator →

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