#2C1784#2C1784

#2C1784 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.166 H 280.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2C1784
RGBrgb(44, 23, 132)
HSLhsl(252, 70%, 30%)
HSVhsv(252, 83%, 52%)
CMYKcmyk(66.7%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.28, 41.42, -56.67)
CIE-LCHlch(19.28, 70.19, 306.16°)
OKLaboklab(32.28% 0.0302 -0.1636)
OKLCHoklch(32.28% 0.166 280.5)
XYZxyz(5.5086, 2.8138, 22.0781)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1784 #6F8417
analogous
#173884 #2C1784 #631784
triadic
#2C1784 #842C17 #17842C
tetradic
#2C1784 #841738 #6F8417 #178463
square
#2C1784 #841738 #6F8417 #178463
split-complementary
#2C1784 #846317 #388417
monochromatic
#09051C #1B0E50 #2C1784 #3D20B8 #5839DC

Accessibility & contrast

On white

13.44
#2C1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1784
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1784#FFFFFF#000000##FFFFFF
##2C17841.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1784;
/* rgb */ color: rgb(44, 23, 132);
/* oklch */ color: oklch(32.3% 0.166 280.5);
Tailwind
colors: {
  custom: {
    50: '#7358a9',
    500: '#2c1784',
    950: '#000000',
  },
}
SCSS
$custom: #2c1784;
$custom-light: #7358a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1784",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 251.56,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32278,
    "c": 0.16633,
    "h": 280.5
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#2C1784
secondary
#A1B83F
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1784

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

Preview Lab → · Contrast checker → · Palette generator →

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