#2C1570#2C1570

#2C1570 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.144 H 285.3°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2C1570
RGBrgb(44, 21, 112)
HSLhsl(255, 68%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(60.7%, 81.2%, 0%, 56.1%)
CIE-LABlab(16.71, 36.22, -48.12)
CIE-LCHlch(16.71, 60.23, 306.97°)
OKLaboklab(29.82% 0.0378 -0.1386)
OKLCHoklch(29.82% 0.144 285.3)
XYZxyz(4.2306, 2.2414, 15.5358)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1570 #597015
analogous
#152B70 #2C1570 #591570
triadic
#2C1570 #702C15 #15702C
tetradic
#2C1570 #70152B #597015 #157059
square
#2C1570 #70152B #597015 #157059
split-complementary
#2C1570 #705915 #2B7015
monochromatic
#0A051A #180B3C #2C1570 #401FA4 #5529D7

Accessibility & contrast

On white

14.50
#2C1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1570
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1570#FFFFFF#000000##FFFFFF
##2C15701.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#072F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1570;
/* rgb */ color: rgb(44, 21, 112);
/* oklch */ color: oklch(29.8% 0.144 285.3);
Tailwind
colors: {
  custom: {
    50: '#6f569a',
    500: '#2c1570',
    950: '#000000',
  },
}
SCSS
$custom: #2c1570;
$custom-light: #6f569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1570",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 255.165,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29823,
    "c": 0.14369,
    "h": 285.3
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#2C1570
secondary
#8BA63B
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1570

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

Preview Lab → · Contrast checker → · Palette generator →

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