#2C0841#2C0841

#2C0841 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.102 H 309.2°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#2C0841
RGBrgb(44, 8, 65)
HSLhsl(278, 78%, 14%)
HSVhsv(278, 88%, 25%)
CMYKcmyk(32.3%, 87.7%, 0%, 74.5%)
CIE-LABlab(9.73, 28.96, -27.74)
CIE-LCHlch(9.73, 40.10, 316.22°)
OKLaboklab(23.49% 0.0642 -0.0788)
OKLCHoklch(23.49% 0.102 309.2)
XYZxyz(2.0795, 1.0908, 5.1010)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0841 #1D4108
analogous
#100841 #2C0841 #41083A
triadic
#2C0841 #412C08 #08412C
tetradic
#2C0841 #411008 #1D4108 #083A41
square
#2C0841 #411008 #1D4108 #083A41
split-complementary
#2C0841 #3A4108 #084110
monochromatic
#12031B #12031B #2C0841 #510F77 #7615AE

Accessibility & contrast

On white

17.24
#2C0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0841
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0841#FFFFFF#000000##FFFFFF
##2C08411.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0841;
/* rgb */ color: rgb(44, 8, 65);
/* oklch */ color: oklch(23.5% 0.102 309.2);
Tailwind
colors: {
  custom: {
    50: '#684c76',
    500: '#2c0841',
    950: '#000000',
  },
}
SCSS
$custom: #2c0841;
$custom-light: #684c76;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0841",
  "rgb": {
    "r": 44,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 277.895,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23486,
    "c": 0.10162,
    "h": 309.2
  },
  "luminance": 0.01091
}

Semantic roles & 50–950 ramp

primary
#2C0841
secondary
#477F25
accent
#F5337A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0841

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

Preview Lab → · Contrast checker → · Palette generator →

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