#2C0D42#2C0D42

#2C0D42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.096 H 307.3°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2C0D42
RGBrgb(44, 13, 66)
HSLhsl(275, 67%, 15%)
HSVhsv(275, 80%, 26%)
CMYKcmyk(33.3%, 80.3%, 0%, 74.1%)
CIE-LABlab(10.68, 26.75, -26.90)
CIE-LCHlch(10.68, 37.94, 314.84°)
OKLaboklab(24.19% 0.0583 -0.0763)
OKLCHoklch(24.19% 0.096 307.3)
XYZxyz(2.1658, 1.2167, 5.2740)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D42 #23420D
analogous
#110D42 #2C0D42 #420D3D
triadic
#2C0D42 #422C0D #0D422C
tetradic
#2C0D42 #42110D #23420D #0D3D42
square
#2C0D42 #42110D #23420D #0D3D42
split-complementary
#2C0D42 #3D420D #0D4211
monochromatic
#11051A #11051A #2C0D42 #4E1775 #7021A8

Accessibility & contrast

On white

16.89
#2C0D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2C0D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D42
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D42#FFFFFF#000000##FFFFFF
##2C0D421.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#281926
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c0d42;
/* rgb */ color: rgb(44, 13, 66);
/* oklch */ color: oklch(24.2% 0.096 307.3);
Tailwind
colors: {
  custom: {
    50: '#684f77',
    500: '#2c0d42',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d42;
$custom-light: #684f77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d42",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 275.094,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24187,
    "c": 0.09603,
    "h": 307.3
  },
  "luminance": 0.01217
}

Semantic roles & 50–950 ramp

primary
#2C0D42
secondary
#4F7E2D
accent
#EA3E85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C0D42

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

Preview Lab → · Contrast checker → · Palette generator →

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