#2C1566#2C1566

#2C1566 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.131 H 288.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2C1566
RGBrgb(44, 21, 102)
HSLhsl(257, 66%, 24%)
HSVhsv(257, 79%, 40%)
CMYKcmyk(56.9%, 79.4%, 0%, 60%)
CIE-LABlab(15.65, 33.11, -43.32)
CIE-LCHlch(15.65, 54.52, 307.39°)
OKLaboklab(28.76% 0.0409 -0.1246)
OKLCHoklch(28.76% 0.131 288.2)
XYZxyz(3.7044, 2.0309, 12.7646)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1566 #4F6615
analogous
#152766 #2C1566 #551566
triadic
#2C1566 #662C15 #15662C
tetradic
#2C1566 #661527 #4F6615 #156655
square
#2C1566 #661527 #4F6615 #156655
split-complementary
#2C1566 #665515 #276615
monochromatic
#0B0519 #160B33 #2C1566 #421F99 #582ACC

Accessibility & contrast

On white

14.93
#2C1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1566
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1566#FFFFFF#000000##FFFFFF
##2C15661.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1566;
/* rgb */ color: rgb(44, 21, 102);
/* oklch */ color: oklch(28.8% 0.131 288.2);
Tailwind
colors: {
  custom: {
    50: '#6d5592',
    500: '#2c1566',
    950: '#000000',
  },
}
SCSS
$custom: #2c1566;
$custom-light: #6d5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1566",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 257.037,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28763,
    "c": 0.13111,
    "h": 288.2
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#2C1566
secondary
#819D3A
accent
#E93FB9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1566

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

Preview Lab → · Contrast checker → · Palette generator →

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