#2C1884#2C1884

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

Color values

HEX#2C1884
RGBrgb(44, 24, 132)
HSLhsl(251, 69%, 31%)
HSVhsv(251, 82%, 52%)
CMYKcmyk(66.7%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.45, 40.93, -56.39)
CIE-LCHlch(19.45, 69.68, 305.97°)
OKLaboklab(32.4% 0.0296 -0.1628)
OKLCHoklch(32.4% 0.165 280.3)
XYZxyz(5.5289, 2.8542, 22.0849)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1884 #708418
analogous
#183A84 #2C1884 #621884
triadic
#2C1884 #842C18 #18842C
tetradic
#2C1884 #84183A #708418 #188462
square
#2C1884 #84183A #708418 #188462
split-complementary
#2C1884 #846218 #3A8418
monochromatic
#09051C #1B0F50 #2C1884 #3D21B8 #593BDB

Accessibility & contrast

On white

13.37
#2C1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1884
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1884#FFFFFF#000000##FFFFFF
##2C18841.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.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: #2c1884;
/* rgb */ color: rgb(44, 24, 132);
/* oklch */ color: oklch(32.4% 0.165 280.3);
Tailwind
colors: {
  custom: {
    50: '#7359a9',
    500: '#2c1884',
    950: '#000000',
  },
}
SCSS
$custom: #2c1884;
$custom-light: #7359a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1884",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 251.111,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32395,
    "c": 0.16544,
    "h": 280.3
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#2C1884
secondary
#A2B840
accent
#EC3CCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1884

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

Preview Lab → · Contrast checker → · Palette generator →

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