#2C1984#2C1984

#2C1984 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.165 H 280.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2C1984
RGBrgb(44, 25, 132)
HSLhsl(251, 68%, 31%)
HSVhsv(251, 81%, 52%)
CMYKcmyk(66.7%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.62, 40.43, -56.10)
CIE-LCHlch(19.62, 69.15, 305.78°)
OKLaboklab(32.52% 0.0291 -0.1619)
OKLCHoklch(32.52% 0.165 280.2)
XYZxyz(5.5499, 2.8962, 22.0919)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1984 #718419
analogous
#193B84 #2C1984 #611984
triadic
#2C1984 #842C19 #19842C
tetradic
#2C1984 #84193B #718419 #198461
square
#2C1984 #84193B #718419 #198461
split-complementary
#2C1984 #846119 #3B8419
monochromatic
#0A061D #1B0F51 #2C1984 #3D23B7 #593DDA

Accessibility & contrast

On white

13.30
#2C1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1984
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1984#FFFFFF#000000##FFFFFF
##2C19841.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1984;
/* rgb */ color: rgb(44, 25, 132);
/* oklch */ color: oklch(32.5% 0.165 280.2);
Tailwind
colors: {
  custom: {
    50: '#7259a9',
    500: '#2c1984',
    950: '#000000',
  },
}
SCSS
$custom: #2c1984;
$custom-light: #7259a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1984",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 250.654,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32515,
    "c": 0.16454,
    "h": 280.2
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#2C1984
secondary
#A3B841
accent
#EB3DCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1984

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

Preview Lab → · Contrast checker → · Palette generator →

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