#2C1571#2C1571

#2C1571 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.145 H 285.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2C1571
RGBrgb(44, 21, 113)
HSLhsl(255, 69%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(61.1%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.81, 36.53, -48.59)
CIE-LCHlch(16.81, 60.79, 306.94°)
OKLaboklab(29.93% 0.0375 -0.14)
OKLCHoklch(29.93% 0.145 285)
XYZxyz(4.2866, 2.2638, 15.8307)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1571 #5A7115
analogous
#152C71 #2C1571 #5A1571
triadic
#2C1571 #712C15 #15712C
tetradic
#2C1571 #71152C #5A7115 #15715A
square
#2C1571 #71152C #5A7115 #15715A
split-complementary
#2C1571 #715A15 #2C7115
monochromatic
#0A051A #180B3D #2C1571 #401FA5 #5529D7

Accessibility & contrast

On white

14.45
#2C1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1571
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1571#FFFFFF#000000##FFFFFF
##2C15711.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#053043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1571;
/* rgb */ color: rgb(44, 21, 113);
/* oklch */ color: oklch(29.9% 0.145 285.0);
Tailwind
colors: {
  custom: {
    50: '#6f569b',
    500: '#2c1571',
    950: '#000000',
  },
}
SCSS
$custom: #2c1571;
$custom-light: #6f569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1571",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 255,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29932,
    "c": 0.14493,
    "h": 285
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#2C1571
secondary
#8CA73B
accent
#EB3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1571

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

Preview Lab → · Contrast checker → · Palette generator →

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