#2C0840#2C0840

#2C0840 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.101 H 309.9°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2C0840
RGBrgb(44, 8, 64)
HSLhsl(279, 78%, 14%)
HSVhsv(279, 88%, 25%)
CMYKcmyk(31.2%, 87.5%, 0%, 74.9%)
CIE-LABlab(9.64, 28.70, -27.18)
CIE-LCHlch(9.64, 39.53, 316.56°)
OKLaboklab(23.39% 0.0645 -0.0771)
OKLCHoklch(23.39% 0.101 309.9)
XYZxyz(2.0508, 1.0793, 4.9498)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0840 #1C4008
analogous
#100840 #2C0840 #400838
triadic
#2C0840 #402C08 #08402C
tetradic
#2C0840 #401008 #1C4008 #083840
square
#2C0840 #401008 #1C4008 #083840
split-complementary
#2C0840 #384008 #084010
monochromatic
#13031B #13031B #2C0840 #510F76 #7716AD

Accessibility & contrast

On white

17.27
#2C0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0840
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0840#FFFFFF#000000##FFFFFF
##2C08401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#291624
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0840;
/* rgb */ color: rgb(44, 8, 64);
/* oklch */ color: oklch(23.4% 0.101 309.9);
Tailwind
colors: {
  custom: {
    50: '#684c75',
    500: '#2c0840',
    950: '#000000',
  },
}
SCSS
$custom: #2c0840;
$custom-light: #684c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0840",
  "rgb": {
    "r": 44,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 278.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23394,
    "c": 0.10051,
    "h": 309.9
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#2C0840
secondary
#457E25
accent
#F43478
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0840

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

Preview Lab → · Contrast checker → · Palette generator →

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