#2C1565#2C1565

#2C1565 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.130 H 288.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2C1565
RGBrgb(44, 21, 101)
HSLhsl(257, 66%, 24%)
HSVhsv(257, 79%, 40%)
CMYKcmyk(56.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.55, 32.79, -42.83)
CIE-LCHlch(15.55, 53.94, 307.44°)
OKLaboklab(28.66% 0.0411 -0.1231)
OKLCHoklch(28.66% 0.13 288.5)
XYZxyz(3.6551, 2.0112, 12.5050)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1565 #4E6515
analogous
#152665 #2C1565 #541565
triadic
#2C1565 #652C15 #15652C
tetradic
#2C1565 #651526 #4E6515 #156554
square
#2C1565 #651526 #4E6515 #156554
split-complementary
#2C1565 #655415 #266515
monochromatic
#0B0519 #160A32 #2C1565 #422098 #582ACA

Accessibility & contrast

On white

14.98
#2C1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1565
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1565#FFFFFF#000000##FFFFFF
##2C15651.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#162B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1565;
/* rgb */ color: rgb(44, 21, 101);
/* oklch */ color: oklch(28.7% 0.130 288.5);
Tailwind
colors: {
  custom: {
    50: '#6c5592',
    500: '#2c1565',
    950: '#000000',
  },
}
SCSS
$custom: #2c1565;
$custom-light: #6c5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1565",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 257.25,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2866,
    "c": 0.12983,
    "h": 288.5
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

primary
#2C1565
secondary
#809C3A
accent
#E93FB8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1565

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

Preview Lab → · Contrast checker → · Palette generator →

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