#2C1686#2C1686

#2C1686 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.170 H 280.2°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2C1686
RGBrgb(44, 22, 134)
HSLhsl(252, 72%, 31%)
HSVhsv(252, 84%, 53%)
CMYKcmyk(67.2%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.35, 42.50, -57.82)
CIE-LCHlch(19.35, 71.76, 306.32°)
OKLaboklab(32.39% 0.03 -0.1669)
OKLCHoklch(32.39% 0.17 280.2)
XYZxyz(5.6273, 2.8301, 22.7993)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1686 #708616
analogous
#163886 #2C1686 #641686
triadic
#2C1686 #862C16 #16862C
tetradic
#2C1686 #861638 #708616 #168664
square
#2C1686 #861638 #708616 #168664
split-complementary
#2C1686 #866416 #388616
monochromatic
#09051D #1B0D51 #2C1686 #3D1FBB #5938DE

Accessibility & contrast

On white

13.41
#2C1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1686
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1686#FFFFFF#000000##FFFFFF
##2C16861.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.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: #2c1686;
/* rgb */ color: rgb(44, 22, 134);
/* oklch */ color: oklch(32.4% 0.170 280.2);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2c1686',
    950: '#000000',
  },
}
SCSS
$custom: #2c1686;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1686",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 251.786,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32393,
    "c": 0.16958,
    "h": 280.2
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#2C1686
secondary
#A2BA3E
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1686

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

Preview Lab → · Contrast checker → · Palette generator →

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