#2C1786#2C1786

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

Color values

HEX#2C1786
RGBrgb(44, 23, 134)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 53%)
CMYKcmyk(67.2%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.51, 42.03, -57.55)
CIE-LCHlch(19.51, 71.26, 306.14°)
OKLaboklab(32.51% 0.0295 -0.1661)
OKLCHoklch(32.51% 0.169 280.1)
XYZxyz(5.6468, 2.8690, 22.8058)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1786 #718617
analogous
#173986 #2C1786 #631786
triadic
#2C1786 #862C17 #17862C
tetradic
#2C1786 #861739 #718617 #178663
square
#2C1786 #861739 #718617 #178663
split-complementary
#2C1786 #866317 #398617
monochromatic
#0A051E #1B0E52 #2C1786 #3D20BA #593ADD

Accessibility & contrast

On white

13.34
#2C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1786
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1786#FFFFFF#000000##FFFFFF
##2C17861.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1786;
/* rgb */ color: rgb(44, 23, 134);
/* oklch */ color: oklch(32.5% 0.169 280.1);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2c1786',
    950: '#000000',
  },
}
SCSS
$custom: #2c1786;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1786",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 251.351,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32505,
    "c": 0.16873,
    "h": 280.1
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#2C1786
secondary
#A3BA3F
accent
#ED3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1786

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

Preview Lab → · Contrast checker → · Palette generator →

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