#2C0C49#2C0C49

#2C0C49 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.106 H 303.1°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#2C0C49
RGBrgb(44, 12, 73)
HSLhsl(271, 72%, 17%)
HSVhsv(271, 84%, 29%)
CMYKcmyk(39.7%, 83.6%, 0%, 71.4%)
CIE-LABlab(11.13, 29.18, -31.08)
CIE-LCHlch(11.13, 42.63, 313.19°)
OKLaboklab(24.7% 0.0578 -0.0886)
OKLCHoklch(24.7% 0.106 303.1)
XYZxyz(2.3725, 1.2795, 6.4240)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C49 #29490C
analogous
#0D0C49 #2C0C49 #490C48
triadic
#2C0C49 #492C0C #0C492C
tetradic
#2C0C49 #490D0C #29490C #0C4849
square
#2C0C49 #490D0C #29490C #0C4849
split-complementary
#2C0C49 #48490C #0C490D
monochromatic
#10041A #10041A #2C0C49 #4C157E #6B1DB2

Accessibility & contrast

On white

16.72
#2C0C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0C49
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C49#FFFFFF#000000##FFFFFF
##2C0C491.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4B
Deuteranopia (green-blind)
#001E48
Tritanopia (blue-blind)
#261B2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0c49;
/* rgb */ color: rgb(44, 12, 73);
/* oklch */ color: oklch(24.7% 0.106 303.1);
Tailwind
colors: {
  custom: {
    50: '#694f7c',
    500: '#2c0c49',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c49;
$custom-light: #694f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c49",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 271.475,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24704,
    "c": 0.10581,
    "h": 303.1
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#2C0C49
secondary
#56852C
accent
#EE398F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C0C49

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

Preview Lab → · Contrast checker → · Palette generator →

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