#2C1561#2C1561

#2C1561 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.125 H 289.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2C1561
RGBrgb(44, 21, 97)
HSLhsl(258, 64%, 23%)
HSVhsv(258, 78%, 38%)
CMYKcmyk(54.6%, 78.4%, 0%, 62%)
CIE-LABlab(15.14, 31.55, -40.84)
CIE-LCHlch(15.14, 51.61, 307.68°)
OKLaboklab(28.25% 0.0422 -0.1173)
OKLCHoklch(28.25% 0.125 289.8)
XYZxyz(3.4639, 1.9347, 11.4979)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1561 #4A6115
analogous
#152461 #2C1561 #521561
triadic
#2C1561 #612C15 #15612C
tetradic
#2C1561 #611524 #4A6115 #156152
square
#2C1561 #611524 #4A6115 #156152
split-complementary
#2C1561 #615215 #246115
monochromatic
#0B0519 #150A2F #2C1561 #432093 #5A2BC6

Accessibility & contrast

On white

15.14
#2C1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1561
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1561#FFFFFF#000000##FFFFFF
##2C15611.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#19293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1561;
/* rgb */ color: rgb(44, 21, 97);
/* oklch */ color: oklch(28.2% 0.125 289.8);
Tailwind
colors: {
  custom: {
    50: '#6c558f',
    500: '#2c1561',
    950: '#000000',
  },
}
SCSS
$custom: #2c1561;
$custom-light: #6c558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1561",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 258.158,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2825,
    "c": 0.12469,
    "h": 289.8
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#2C1561
secondary
#7C983A
accent
#E740B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1561

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

Preview Lab → · Contrast checker → · Palette generator →

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