#2C1040#2C1040

#2C1040 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.089 H 307.9°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2C1040
RGBrgb(44, 16, 64)
HSLhsl(275, 60%, 16%)
HSVhsv(275, 75%, 25%)
CMYKcmyk(31.2%, 75%, 0%, 74.9%)
CIE-LABlab(11.11, 24.54, -24.80)
CIE-LCHlch(11.11, 34.89, 314.70°)
OKLaboklab(24.44% 0.0547 -0.0702)
OKLCHoklch(24.44% 0.089 307.9)
XYZxyz(2.1492, 1.2763, 4.9826)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1040 #244010
analogous
#141040 #2C1040 #40103C
triadic
#2C1040 #402C10 #10402C
tetradic
#2C1040 #401410 #244010 #103C40
square
#2C1040 #401410 #244010 #103C40
split-complementary
#2C1040 #3C4010 #104014
monochromatic
#110618 #110618 #2C1040 #4E1C71 #6F28A2

Accessibility & contrast

On white

16.73
#2C1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1040
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1040#FFFFFF#000000##FFFFFF
##2C10401.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#291A26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c1040;
/* rgb */ color: rgb(44, 16, 64);
/* oklch */ color: oklch(24.4% 0.089 307.9);
Tailwind
colors: {
  custom: {
    50: '#675075',
    500: '#2c1040',
    950: '#000000',
  },
}
SCSS
$custom: #2c1040;
$custom-light: #675075;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1040",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 275,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24441,
    "c": 0.08894,
    "h": 307.9
  },
  "luminance": 0.01276
}

Semantic roles & 50–950 ramp

primary
#2C1040
secondary
#507A32
accent
#E34587
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1040

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

Preview Lab → · Contrast checker → · Palette generator →

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