#2C0D4A#2C0D4A

#2C0D4A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.106 H 302.3°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2C0D4A
RGBrgb(44, 13, 74)
HSLhsl(270, 70%, 17%)
HSVhsv(270, 82%, 29%)
CMYKcmyk(40.5%, 82.4%, 0%, 71%)
CIE-LABlab(11.40, 28.96, -31.34)
CIE-LCHlch(11.40, 42.68, 312.74°)
OKLaboklab(24.92% 0.0565 -0.0894)
OKLCHoklch(24.92% 0.106 302.3)
XYZxyz(2.4184, 1.3177, 6.6042)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D4A #2B4A0D
analogous
#0E0D4A #2C0D4A #4A0D4A
triadic
#2C0D4A #4A2C0D #0D4A2C
tetradic
#2C0D4A #4A0E0D #2B4A0D #0D4A4A
square
#2C0D4A #4A0E0D #2B4A0D #0D4A4A
split-complementary
#2C0D4A #4A4A0D #0D4A0E
monochromatic
#0F051A #0F051A #2C0D4A #4B167E #6A1FB2

Accessibility & contrast

On white

16.62
#2C0D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C0D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D4A
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D4A#FFFFFF#000000##FFFFFF
##2C0D4A1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#261C2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0d4a;
/* rgb */ color: rgb(44, 13, 74);
/* oklch */ color: oklch(24.9% 0.106 302.3);
Tailwind
colors: {
  custom: {
    50: '#694f7d',
    500: '#2c0d4a',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d4a;
$custom-light: #694f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d4a",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 270.492,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24922,
    "c": 0.10574,
    "h": 302.3
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#2C0D4A
secondary
#59852E
accent
#ED3B92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C0D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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