#2C1A86#2C1A86

#2C1A86 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.166 H 279.7°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2C1A86
RGBrgb(44, 26, 134)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(67.2%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.02, 40.55, -56.70)
CIE-LCHlch(20.02, 69.71, 305.57°)
OKLaboklab(32.86% 0.0279 -0.1637)
OKLCHoklch(32.86% 0.166 279.7)
XYZxyz(5.7098, 2.9950, 22.8268)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A86 #74861A
analogous
#1A3E86 #2C1A86 #621A86
triadic
#2C1A86 #862C1A #1A862C
tetradic
#2C1A86 #861A3E #74861A #1A8662
square
#2C1A86 #861A3E #74861A #1A8662
split-complementary
#2C1A86 #86621A #3E861A
monochromatic
#0A061F #1B1053 #2C1A86 #3D24B9 #5A40DA

Accessibility & contrast

On white

13.13
#2C1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A86
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A86#FFFFFF#000000##FFFFFF
##2C1A861.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1a86;
/* rgb */ color: rgb(44, 26, 134);
/* oklch */ color: oklch(32.9% 0.166 279.7);
Tailwind
colors: {
  custom: {
    50: '#735aaa',
    500: '#2c1a86',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a86;
$custom-light: #735aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a86",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 250,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.16607,
    "h": 279.7
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#2C1A86
secondary
#A6B942
accent
#EA3DCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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