#2C0640#2C0640

#2C0640 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.103 H 310.3°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#2C0640
RGBrgb(44, 6, 64)
HSLhsl(279, 83%, 14%)
HSVhsv(279, 91%, 25%)
CMYKcmyk(31.2%, 90.6%, 0%, 74.9%)
CIE-LABlab(9.29, 29.71, -27.75)
CIE-LCHlch(9.29, 40.65, 316.96°)
OKLaboklab(23.15% 0.0668 -0.0787)
OKLCHoklch(23.15% 0.103 310.3)
XYZxyz(2.0291, 1.0359, 4.9426)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0640 #1A4006
analogous
#0F0640 #2C0640 #400637
triadic
#2C0640 #402C06 #06402C
tetradic
#2C0640 #400F06 #1A4006 #063740
square
#2C0640 #400F06 #1A4006 #063740
split-complementary
#2C0640 #374006 #06400F
monochromatic
#13031C #13031C #2C0640 #520B78 #7910B0

Accessibility & contrast

On white

17.40
#2C0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2C0640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0640
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0640#FFFFFF#000000##FFFFFF
##2C06401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#291523
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0640;
/* rgb */ color: rgb(44, 6, 64);
/* oklch */ color: oklch(23.2% 0.103 310.3);
Tailwind
colors: {
  custom: {
    50: '#684b75',
    500: '#2c0640',
    950: '#000000',
  },
}
SCSS
$custom: #2c0640;
$custom-light: #684b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0640",
  "rgb": {
    "r": 44,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 279.31,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2315,
    "c": 0.10329,
    "h": 310.3
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#2C0640
secondary
#428022
accent
#F92F74
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0640

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

Preview Lab → · Contrast checker → · Palette generator →

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