#2C1986#2C1986

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

Color values

HEX#2C1986
RGBrgb(44, 25, 134)
HSLhsl(250, 69%, 31%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(67.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(19.85, 41.05, -56.99)
CIE-LCHlch(19.85, 70.24, 305.77°)
OKLaboklab(32.74% 0.0285 -0.1645)
OKLCHoklch(32.74% 0.167 279.8)
XYZxyz(5.6880, 2.9515, 22.8196)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1986 #738619
analogous
#193C86 #2C1986 #621986
triadic
#2C1986 #862C19 #19862C
tetradic
#2C1986 #86193C #738619 #198662
square
#2C1986 #86193C #738619 #198662
split-complementary
#2C1986 #866219 #3C8619
monochromatic
#0A061F #1B0F52 #2C1986 #3D23BA #5A3EDB

Accessibility & contrast

On white

13.20
#2C1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1986
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1986#FFFFFF#000000##FFFFFF
##2C19861.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.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: #2c1986;
/* rgb */ color: rgb(44, 25, 134);
/* oklch */ color: oklch(32.7% 0.167 279.8);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2c1986',
    950: '#000000',
  },
}
SCSS
$custom: #2c1986;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1986",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 250.459,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32739,
    "c": 0.16698,
    "h": 279.8
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2C1986
secondary
#A5BA41
accent
#EB3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1986

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

Preview Lab → · Contrast checker → · Palette generator →

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