#2C1A82#2C1A82

#2C1A82 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.161 H 280.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2C1A82
RGBrgb(44, 26, 130)
HSLhsl(250, 67%, 31%)
HSVhsv(250, 80%, 51%)
CMYKcmyk(66.2%, 80%, 0%, 49%)
CIE-LABlab(19.58, 39.28, -54.91)
CIE-LCHlch(19.58, 67.52, 305.58°)
OKLaboklab(32.42% 0.0291 -0.1585)
OKLCHoklch(32.42% 0.161 280.4)
XYZxyz(5.4361, 2.8855, 21.3853)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A82 #70821A
analogous
#1A3C82 #2C1A82 #601A82
triadic
#2C1A82 #822C1A #1A822C
tetradic
#2C1A82 #821A3C #70821A #1A8260
square
#2C1A82 #821A3C #70821A #1A8260
split-complementary
#2C1A82 #82601A #3C821A
monochromatic
#09061C #1B104F #2C1A82 #3D24B5 #593ED8

Accessibility & contrast

On white

13.31
#2C1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A82
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A82#FFFFFF#000000##FFFFFF
##2C1A821.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1a82;
/* rgb */ color: rgb(44, 26, 130);
/* oklch */ color: oklch(32.4% 0.161 280.4);
Tailwind
colors: {
  custom: {
    50: '#725aa7',
    500: '#2c1a82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a82;
$custom-light: #725aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a82",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 250.385,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32418,
    "c": 0.16114,
    "h": 280.4
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#2C1A82
secondary
#A2B642
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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