#2C1568#2C1568

#2C1568 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.134 H 287.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1568
RGBrgb(44, 21, 104)
HSLhsl(257, 66%, 25%)
HSVhsv(257, 80%, 41%)
CMYKcmyk(57.7%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.86, 33.73, -44.29)
CIE-LCHlch(15.86, 55.67, 307.29°)
OKLaboklab(28.97% 0.0403 -0.1274)
OKLCHoklch(28.97% 0.134 287.5)
XYZxyz(3.8048, 2.0711, 13.2933)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1568 #516815
analogous
#152768 #2C1568 #561568
triadic
#2C1568 #682C15 #15682C
tetradic
#2C1568 #681527 #516815 #156856
square
#2C1568 #681527 #516815 #156856
split-complementary
#2C1568 #685615 #276815
monochromatic
#0B0519 #160B35 #2C1568 #421F9B #572ACE

Accessibility & contrast

On white

14.85
#2C1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1568
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1568#FFFFFF#000000##FFFFFF
##2C15681.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#132C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1568;
/* rgb */ color: rgb(44, 21, 104);
/* oklch */ color: oklch(29.0% 0.134 287.5);
Tailwind
colors: {
  custom: {
    50: '#6d5594',
    500: '#2c1568',
    950: '#000000',
  },
}
SCSS
$custom: #2c1568;
$custom-light: #6d5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1568",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 256.627,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28972,
    "c": 0.13364,
    "h": 287.5
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#2C1568
secondary
#839F3A
accent
#E93EBA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1568

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

Preview Lab → · Contrast checker → · Palette generator →

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