#2C1563#2C1563

#2C1563 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.127 H 289.1°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2C1563
RGBrgb(44, 21, 99)
HSLhsl(258, 65%, 24%)
HSVhsv(258, 79%, 39%)
CMYKcmyk(55.6%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.34, 32.17, -41.84)
CIE-LCHlch(15.34, 52.78, 307.56°)
OKLaboklab(28.45% 0.0417 -0.1202)
OKLCHoklch(28.45% 0.127 289.1)
XYZxyz(3.5583, 1.9725, 11.9952)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1563 #4C6315
analogous
#152563 #2C1563 #531563
triadic
#2C1563 #632C15 #15632C
tetradic
#2C1563 #631525 #4C6315 #156353
square
#2C1563 #631525 #4C6315 #156353
split-complementary
#2C1563 #635315 #256315
monochromatic
#0B0519 #160A31 #2C1563 #422095 #592AC8

Accessibility & contrast

On white

15.06
#2C1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1563
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1563#FFFFFF#000000##FFFFFF
##2C15631.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#172A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1563;
/* rgb */ color: rgb(44, 21, 99);
/* oklch */ color: oklch(28.5% 0.127 289.1);
Tailwind
colors: {
  custom: {
    50: '#6c5590',
    500: '#2c1563',
    950: '#000000',
  },
}
SCSS
$custom: #2c1563;
$custom-light: #6c5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1563",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 257.692,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28454,
    "c": 0.12728,
    "h": 289.1
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#2C1563
secondary
#7E9A3A
accent
#E840B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2C1563

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

Preview Lab → · Contrast checker → · Palette generator →

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