#2C1567#2C1567

#2C1567 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.132 H 287.8°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1567
RGBrgb(44, 21, 103)
HSLhsl(257, 66%, 24%)
HSVhsv(257, 80%, 40%)
CMYKcmyk(57.3%, 79.6%, 0%, 59.6%)
CIE-LABlab(15.75, 33.42, -43.81)
CIE-LCHlch(15.75, 55.10, 307.34°)
OKLaboklab(28.87% 0.0406 -0.126)
OKLCHoklch(28.87% 0.132 287.8)
XYZxyz(3.7543, 2.0509, 13.0274)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1567 #506715
analogous
#152767 #2C1567 #551567
triadic
#2C1567 #672C15 #15672C
tetradic
#2C1567 #671527 #506715 #156755
square
#2C1567 #671527 #506715 #156755
split-complementary
#2C1567 #675515 #276715
monochromatic
#0B0519 #160B34 #2C1567 #421F9A #572ACD

Accessibility & contrast

On white

14.89
#2C1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C1567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1567
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1567#FFFFFF#000000##FFFFFF
##2C15671.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#142C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1567;
/* rgb */ color: rgb(44, 21, 103);
/* oklch */ color: oklch(28.9% 0.132 287.8);
Tailwind
colors: {
  custom: {
    50: '#6d5593',
    500: '#2c1567',
    950: '#000000',
  },
}
SCSS
$custom: #2c1567;
$custom-light: #6d5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1567",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 256.829,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28867,
    "c": 0.13238,
    "h": 287.8
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#2C1567
secondary
#829E3A
accent
#E93FB9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1567

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

Preview Lab → · Contrast checker → · Palette generator →

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