#2C1C7C#2C1C7C

#2C1C7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.152 H 281.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2C1C7C
RGBrgb(44, 28, 124)
HSLhsl(250, 63%, 30%)
HSVhsv(250, 77%, 49%)
CMYKcmyk(64.5%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.31, 36.27, -51.55)
CIE-LCHlch(19.31, 63.03, 305.13°)
OKLaboklab(32.04% 0.0294 -0.1487)
OKLCHoklch(32.04% 0.152 281.2)
XYZxyz(5.0909, 2.8208, 19.3411)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C7C #6C7C1C
analogous
#1C3C7C #2C1C7C #5C1C7C
triadic
#2C1C7C #7C2C1C #1C7C2C
tetradic
#2C1C7C #7C1C3C #6C7C1C #1C7C5C
square
#2C1C7C #7C1C3C #6C7C1C #1C7C5C
split-complementary
#2C1C7C #7C5C1C #3C7C1C
monochromatic
#090619 #1A114A #2C1C7C #3E27AE #583FD4

Accessibility & contrast

On white

13.43
#2C1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C7C
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C7C#FFFFFF#000000##FFFFFF
##2C1C7C1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1c7c;
/* rgb */ color: rgb(44, 28, 124);
/* oklch */ color: oklch(32.0% 0.152 281.2);
Tailwind
colors: {
  custom: {
    50: '#705aa3',
    500: '#2c1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c7c;
$custom-light: #705aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c7c",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 250,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32037,
    "c": 0.15157,
    "h": 281.2
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#2C1C7C
secondary
#9EB044
accent
#E642CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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