#2C1577#2C1577

#2C1577 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.152 H 283.5°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2C1577
RGBrgb(44, 21, 119)
HSLhsl(254, 70%, 27%)
HSVhsv(254, 82%, 47%)
CMYKcmyk(63%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.48, 38.39, -51.37)
CIE-LCHlch(17.48, 64.13, 306.77°)
OKLaboklab(30.59% 0.0356 -0.1481)
OKLCHoklch(30.59% 0.152 283.5)
XYZxyz(4.6356, 2.4034, 17.6688)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1577 #607715
analogous
#152F77 #2C1577 #5D1577
triadic
#2C1577 #772C15 #15772C
tetradic
#2C1577 #77152F #607715 #15775D
square
#2C1577 #77152F #607715 #15775D
split-complementary
#2C1577 #775D15 #2F7715
monochromatic
#0A051A #190C43 #2C1577 #3F1EAB #552DDA

Accessibility & contrast

On white

14.18
#2C1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1577
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1577#FFFFFF#000000##FFFFFF
##2C15771.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1577;
/* rgb */ color: rgb(44, 21, 119);
/* oklch */ color: oklch(30.6% 0.152 283.5);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2c1577',
    950: '#000000',
  },
}
SCSS
$custom: #2c1577;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1577",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 254.082,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30589,
    "c": 0.15232,
    "h": 283.5
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#2C1577
secondary
#92AD3B
accent
#ED3BC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1577

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

Preview Lab → · Contrast checker → · Palette generator →

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