#2C1980#2C1980

#2C1980 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 280.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2C1980
RGBrgb(44, 25, 128)
HSLhsl(251, 67%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(65.6%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.18, 39.17, -54.31)
CIE-LCHlch(19.18, 66.96, 305.80°)
OKLaboklab(32.07% 0.0303 -0.1567)
OKLCHoklch(32.07% 0.16 280.9)
XYZxyz(5.2814, 2.7888, 20.6779)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1980 #6D8019
analogous
#193A80 #2C1980 #5F1980
triadic
#2C1980 #802C19 #19802C
tetradic
#2C1980 #80193A #6D8019 #19805F
square
#2C1980 #80193A #6D8019 #19805F
split-complementary
#2C1980 #805F19 #3A8019
monochromatic
#09051A #1A0F4D #2C1980 #3E23B3 #583BD9

Accessibility & contrast

On white

13.48
#2C1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1980
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1980#FFFFFF#000000##FFFFFF
##2C19801.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1980;
/* rgb */ color: rgb(44, 25, 128);
/* oklch */ color: oklch(32.1% 0.160 280.9);
Tailwind
colors: {
  custom: {
    50: '#7259a6',
    500: '#2c1980',
    950: '#000000',
  },
}
SCSS
$custom: #2c1980;
$custom-light: #7259a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1980",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 251.068,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.15962,
    "h": 280.9
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#2C1980
secondary
#9FB441
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1980

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

Preview Lab → · Contrast checker → · Palette generator →

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