#2C1887#2C1887

#2C1887 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.169 H 279.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1887
RGBrgb(44, 24, 135)
HSLhsl(251, 70%, 31%)
HSVhsv(251, 82%, 53%)
CMYKcmyk(67.4%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.79, 41.86, -57.71)
CIE-LCHlch(19.79, 71.30, 305.95°)
OKLaboklab(32.73% 0.0287 -0.1666)
OKLCHoklch(32.73% 0.169 279.8)
XYZxyz(5.7371, 2.9375, 23.1816)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1887 #738718
analogous
#183B87 #2C1887 #631887
triadic
#2C1887 #872C18 #18872C
tetradic
#2C1887 #87183B #738718 #188763
square
#2C1887 #87183B #738718 #188763
split-complementary
#2C1887 #876318 #3B8718
monochromatic
#0A061F #1B0F53 #2C1887 #3D21BB #5A3DDC

Accessibility & contrast

On white

13.23
#2C1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1887
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1887#FFFFFF#000000##FFFFFF
##2C18871.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1887;
/* rgb */ color: rgb(44, 24, 135);
/* oklch */ color: oklch(32.7% 0.169 279.8);
Tailwind
colors: {
  custom: {
    50: '#7359ab',
    500: '#2c1887',
    950: '#000000',
  },
}
SCSS
$custom: #2c1887;
$custom-light: #7359ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1887",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 250.811,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32733,
    "c": 0.16908,
    "h": 279.8
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#2C1887
secondary
#A5BB40
accent
#ED3BCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1887

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

Preview Lab → · Contrast checker → · Palette generator →

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