#2C1578#2C1578

#2C1578 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.154 H 283.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2C1578
RGBrgb(44, 21, 120)
HSLhsl(254, 70%, 28%)
HSVhsv(254, 83%, 47%)
CMYKcmyk(63.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.59, 38.70, -51.83)
CIE-LCHlch(17.59, 64.68, 306.75°)
OKLaboklab(30.7% 0.0352 -0.1494)
OKLCHoklch(30.7% 0.154 283.3)
XYZxyz(4.6960, 2.4275, 17.9868)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1578 #617815
analogous
#153078 #2C1578 #5D1578
triadic
#2C1578 #782C15 #15782C
tetradic
#2C1578 #781530 #617815 #15785D
square
#2C1578 #781530 #617815 #15785D
split-complementary
#2C1578 #785D15 #307815
monochromatic
#0A051A #190C44 #2C1578 #3F1EAC #552DDA

Accessibility & contrast

On white

14.14
#2C1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1578
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1578#FFFFFF#000000##FFFFFF
##2C15781.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1578;
/* rgb */ color: rgb(44, 21, 120);
/* oklch */ color: oklch(30.7% 0.154 283.3);
Tailwind
colors: {
  custom: {
    50: '#7056a0',
    500: '#2c1578',
    950: '#000000',
  },
}
SCSS
$custom: #2c1578;
$custom-light: #7056a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1578",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 253.939,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.307,
    "c": 0.15355,
    "h": 283.3
  },
  "luminance": 0.02428
}

Semantic roles & 50–950 ramp

primary
#2C1578
secondary
#93AE3B
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1578

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

Preview Lab → · Contrast checker → · Palette generator →

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