#2C1573#2C1573

#2C1573 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.147 H 284.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2C1573
RGBrgb(44, 21, 115)
HSLhsl(255, 69%, 27%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(61.7%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.03, 37.15, -49.52)
CIE-LCHlch(17.03, 61.91, 306.88°)
OKLaboklab(30.15% 0.0369 -0.1427)
OKLCHoklch(30.15% 0.147 284.5)
XYZxyz(4.4004, 2.3093, 16.4302)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1573 #5C7315
analogous
#152D73 #2C1573 #5B1573
triadic
#2C1573 #732C15 #15732C
tetradic
#2C1573 #73152D #5C7315 #15735B
square
#2C1573 #73152D #5C7315 #15735B
split-complementary
#2C1573 #735B15 #2D7315
monochromatic
#0A051A #180C3F #2C1573 #401EA7 #552AD8

Accessibility & contrast

On white

14.36
#2C1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1573
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1573#FFFFFF#000000##FFFFFF
##2C15731.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#013144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1573;
/* rgb */ color: rgb(44, 21, 115);
/* oklch */ color: oklch(30.1% 0.147 284.5);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2c1573',
    950: '#000000',
  },
}
SCSS
$custom: #2c1573;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1573",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 254.681,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30149,
    "c": 0.14741,
    "h": 284.5
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#2C1573
secondary
#8EA93B
accent
#EC3CC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1573

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

Preview Lab → · Contrast checker → · Palette generator →

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