#2C0D4C#2C0D4C

#2C0D4C is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.108 H 301.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2C0D4C
RGBrgb(44, 13, 76)
HSLhsl(270, 71%, 17%)
HSVhsv(270, 83%, 30%)
CMYKcmyk(42.1%, 82.9%, 0%, 70.2%)
CIE-LABlab(11.59, 29.52, -32.42)
CIE-LCHlch(11.59, 43.85, 312.32°)
OKLaboklab(25.11% 0.056 -0.0925)
OKLCHoklch(25.11% 0.108 301.2)
XYZxyz(2.4868, 1.3451, 6.9647)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D4C #2D4C0D
analogous
#0D0D4C #2C0D4C #4C0D4C
triadic
#2C0D4C #4C2C0D #0D4C2C
tetradic
#2C0D4C #4C0D0D #2D4C0D #0D4C4C
square
#2C0D4C #4C0D0D #2D4C0D #0D4C4C
split-complementary
#2C0D4C #4C4C0D #0D4C0D
monochromatic
#0F041A #0F041A #2C0D4C #4A1680 #691FB5

Accessibility & contrast

On white

16.55
#2C0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C0D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D4C
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D4C#FFFFFF#000000##FFFFFF
##2C0D4C1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#251D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0d4c;
/* rgb */ color: rgb(44, 13, 76);
/* oklch */ color: oklch(25.1% 0.108 301.2);
Tailwind
colors: {
  custom: {
    50: '#694f7f',
    500: '#2c0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d4c;
$custom-light: #694f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d4c",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 269.524,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25113,
    "c": 0.10815,
    "h": 301.2
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#2C0D4C
secondary
#5B872E
accent
#EE3A95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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