#2C1572#2C1572

#2C1572 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.146 H 284.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2C1572
RGBrgb(44, 21, 114)
HSLhsl(255, 69%, 26%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(61.4%, 81.6%, 0%, 55.3%)
CIE-LABlab(16.92, 36.84, -49.06)
CIE-LCHlch(16.92, 61.35, 306.91°)
OKLaboklab(30.04% 0.0372 -0.1414)
OKLCHoklch(30.04% 0.146 284.7)
XYZxyz(4.3432, 2.2864, 16.1288)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1572 #5B7215
analogous
#152D72 #2C1572 #5B1572
triadic
#2C1572 #722C15 #15722C
tetradic
#2C1572 #72152D #5B7215 #15725B
square
#2C1572 #72152D #5B7215 #15725B
split-complementary
#2C1572 #725B15 #2D7215
monochromatic
#0A051A #180B3E #2C1572 #401FA6 #552AD8

Accessibility & contrast

On white

14.41
#2C1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1572
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1572#FFFFFF#000000##FFFFFF
##2C15721.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#033043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1572;
/* rgb */ color: rgb(44, 21, 114);
/* oklch */ color: oklch(30.0% 0.146 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2c1572',
    950: '#000000',
  },
}
SCSS
$custom: #2c1572;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1572",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 254.839,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3004,
    "c": 0.14617,
    "h": 284.7
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#2C1572
secondary
#8DA83B
accent
#EC3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1572

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

Preview Lab → · Contrast checker → · Palette generator →

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