#2C1A80#2C1A80

#2C1A80 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 280.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2C1A80
RGBrgb(44, 26, 128)
HSLhsl(251, 66%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(65.6%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.36, 38.65, -54.01)
CIE-LCHlch(19.36, 66.41, 305.59°)
OKLaboklab(32.2% 0.0296 -0.1559)
OKLCHoklch(32.2% 0.159 280.8)
XYZxyz(5.3032, 2.8324, 20.6851)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A80 #6E801A
analogous
#1A3B80 #2C1A80 #5F1A80
triadic
#2C1A80 #802C1A #1A802C
tetradic
#2C1A80 #801A3B #6E801A #1A805F
square
#2C1A80 #801A3B #6E801A #1A805F
split-complementary
#2C1A80 #805F1A #3B801A
monochromatic
#09051A #1B104D #2C1A80 #3D24B3 #583DD8

Accessibility & contrast

On white

13.40
#2C1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A80
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A80#FFFFFF#000000##FFFFFF
##2C1A801.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.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: #2c1a80;
/* rgb */ color: rgb(44, 26, 128);
/* oklch */ color: oklch(32.2% 0.159 280.8);
Tailwind
colors: {
  custom: {
    50: '#725aa6',
    500: '#2c1a80',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a80;
$custom-light: #725aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a80",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 250.588,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32199,
    "c": 0.15865,
    "h": 280.8
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#2C1A80
secondary
#A0B442
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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