#2C1564#2C1564

#2C1564 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.129 H 288.8°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2C1564
RGBrgb(44, 21, 100)
HSLhsl(257, 65%, 24%)
HSVhsv(257, 79%, 39%)
CMYKcmyk(56%, 79%, 0%, 60.8%)
CIE-LABlab(15.44, 32.48, -42.33)
CIE-LCHlch(15.44, 53.36, 307.50°)
OKLaboklab(28.56% 0.0414 -0.1217)
OKLCHoklch(28.56% 0.129 288.8)
XYZxyz(3.6064, 1.9917, 12.2485)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1564 #4D6415
analogous
#152564 #2C1564 #531564
triadic
#2C1564 #642C15 #15642C
tetradic
#2C1564 #641525 #4D6415 #156453
square
#2C1564 #641525 #4D6415 #156453
split-complementary
#2C1564 #645315 #256415
monochromatic
#0B0519 #160A31 #2C1564 #422097 #592AC9

Accessibility & contrast

On white

15.02
#2C1564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C1564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1564
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1564#FFFFFF#000000##FFFFFF
##2C15641.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#162B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1564;
/* rgb */ color: rgb(44, 21, 100);
/* oklch */ color: oklch(28.6% 0.129 288.8);
Tailwind
colors: {
  custom: {
    50: '#6c5591',
    500: '#2c1564',
    950: '#000000',
  },
}
SCSS
$custom: #2c1564;
$custom-light: #6c5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1564",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 257.468,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28556,
    "c": 0.12856,
    "h": 288.8
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#2C1564
secondary
#7F9B3A
accent
#E840B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1564

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

Preview Lab → · Contrast checker → · Palette generator →

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