#2C1576#2C1576

#2C1576 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.151 H 283.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1576
RGBrgb(44, 21, 118)
HSLhsl(254, 70%, 27%)
HSVhsv(254, 82%, 46%)
CMYKcmyk(62.7%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.36, 38.08, -50.91)
CIE-LCHlch(17.36, 63.58, 306.79°)
OKLaboklab(30.48% 0.0359 -0.1468)
OKLCHoklch(30.48% 0.151 283.7)
XYZxyz(4.5759, 2.3795, 17.3542)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1576 #5F7615
analogous
#152E76 #2C1576 #5D1576
triadic
#2C1576 #762C15 #15762C
tetradic
#2C1576 #76152E #5F7615 #15765D
square
#2C1576 #76152E #5F7615 #15765D
split-complementary
#2C1576 #765D15 #2E7615
monochromatic
#0A051A #190C42 #2C1576 #3F1EAA #552CD9

Accessibility & contrast

On white

14.23
#2C1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1576
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1576#FFFFFF#000000##FFFFFF
##2C15761.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1576;
/* rgb */ color: rgb(44, 21, 118);
/* oklch */ color: oklch(30.5% 0.151 283.7);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2c1576',
    950: '#000000',
  },
}
SCSS
$custom: #2c1576;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1576",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 254.227,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30479,
    "c": 0.1511,
    "h": 283.7
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2C1576
secondary
#91AC3B
accent
#ED3BC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1576

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

Preview Lab → · Contrast checker → · Palette generator →

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