#2C0642#2C0642

#2C0642 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.105 H 308.9°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#2C0642
RGBrgb(44, 6, 66)
HSLhsl(278, 83%, 14%)
HSVhsv(278, 91%, 26%)
CMYKcmyk(33.3%, 90.9%, 0%, 74.1%)
CIE-LABlab(9.47, 30.21, -28.86)
CIE-LCHlch(9.47, 41.78, 316.31°)
OKLaboklab(23.34% 0.0663 -0.082)
OKLCHoklch(23.34% 0.105 308.9)
XYZxyz(2.0870, 1.0591, 5.2477)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0642 #1C4206
analogous
#0E0642 #2C0642 #42063A
triadic
#2C0642 #422C06 #06422C
tetradic
#2C0642 #420E06 #1C4206 #063A42
square
#2C0642 #420E06 #1C4206 #063A42
split-complementary
#2C0642 #3A4206 #06420E
monochromatic
#13031C #13031C #2C0642 #510B7A #7710B2

Accessibility & contrast

On white

17.33
#2C0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0642
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0642#FFFFFF#000000##FFFFFF
##2C06421.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#291624
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0642;
/* rgb */ color: rgb(44, 6, 66);
/* oklch */ color: oklch(23.3% 0.105 308.9);
Tailwind
colors: {
  custom: {
    50: '#684b77',
    500: '#2c0642',
    950: '#000000',
  },
}
SCSS
$custom: #2c0642;
$custom-light: #684b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0642",
  "rgb": {
    "r": 44,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 278,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23339,
    "c": 0.10544,
    "h": 308.9
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#2C0642
secondary
#458222
accent
#FA2E79
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0642

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

Preview Lab → · Contrast checker → · Palette generator →

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