#2C1580#2C1580

#2C1580 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 281.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2C1580
RGBrgb(44, 21, 128)
HSLhsl(253, 72%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(65.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.50, 41.15, -55.43)
CIE-LCHlch(18.50, 69.04, 306.58°)
OKLaboklab(31.6% 0.0326 -0.1599)
OKLCHoklch(31.6% 0.163 281.5)
XYZxyz(5.2019, 2.6299, 20.6514)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1580 #698015
analogous
#153480 #2C1580 #621580
triadic
#2C1580 #802C15 #15802C
tetradic
#2C1580 #801534 #698015 #158062
square
#2C1580 #801534 #698015 #158062
split-complementary
#2C1580 #806215 #348015
monochromatic
#09041A #1A0C4B #2C1580 #3E1EB5 #5732DD

Accessibility & contrast

On white

13.76
#2C1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1580
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1580#FFFFFF#000000##FFFFFF
##2C15801.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1580;
/* rgb */ color: rgb(44, 21, 128);
/* oklch */ color: oklch(31.6% 0.163 281.5);
Tailwind
colors: {
  custom: {
    50: '#7257a6',
    500: '#2c1580',
    950: '#000000',
  },
}
SCSS
$custom: #2c1580;
$custom-light: #7257a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1580",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 252.897,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.16323,
    "h": 281.5
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#2C1580
secondary
#9BB53C
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1580

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

Preview Lab → · Contrast checker → · Palette generator →

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