#2C1A84#2C1A84

#2C1A84 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 280.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2C1A84
RGBrgb(44, 26, 132)
HSLhsl(250, 67%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(66.7%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.80, 39.91, -55.81)
CIE-LCHlch(19.80, 68.61, 305.57°)
OKLaboklab(32.64% 0.0285 -0.1611)
OKLCHoklch(32.64% 0.164 280)
XYZxyz(5.5716, 2.9398, 22.0991)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A84 #72841A
analogous
#1A3D84 #2C1A84 #611A84
triadic
#2C1A84 #842C1A #1A842C
tetradic
#2C1A84 #841A3D #72841A #1A8461
square
#2C1A84 #841A3D #72841A #1A8461
split-complementary
#2C1A84 #84611A #3D841A
monochromatic
#0A061E #1B1051 #2C1A84 #3D24B7 #593FD9

Accessibility & contrast

On white

13.22
#2C1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A84
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A84#FFFFFF#000000##FFFFFF
##2C1A841.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1a84;
/* rgb */ color: rgb(44, 26, 132);
/* oklch */ color: oklch(32.6% 0.164 280.0);
Tailwind
colors: {
  custom: {
    50: '#725aa9',
    500: '#2c1a84',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a84;
$custom-light: #725aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a84",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 250.189,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32639,
    "c": 0.16361,
    "h": 280
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#2C1A84
secondary
#A4B842
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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