#2C1C71#2C1C71

#2C1C71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.137 H 283.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1C71
RGBrgb(44, 28, 113)
HSLhsl(251, 60%, 28%)
HSVhsv(251, 75%, 44%)
CMYKcmyk(61.1%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.18, 32.67, -46.35)
CIE-LCHlch(18.18, 56.70, 305.18°)
OKLaboklab(30.89% 0.0321 -0.1335)
OKLCHoklch(30.89% 0.137 283.5)
XYZxyz(4.4337, 2.5580, 15.8797)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C71 #61711C
analogous
#1C3671 #2C1C71 #561C71
triadic
#2C1C71 #712C1C #1C712C
tetradic
#2C1C71 #711C36 #61711C #1C7156
square
#2C1C71 #711C36 #61711C #1C7156
split-complementary
#2C1C71 #71561C #36711C
monochromatic
#0A0619 #191040 #2C1C71 #3F28A2 #5539CE

Accessibility & contrast

On white

13.89
#2C1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C71
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C71#FFFFFF#000000##FFFFFF
##2C1C711.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#043344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1c71;
/* rgb */ color: rgb(44, 28, 113);
/* oklch */ color: oklch(30.9% 0.137 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a9b',
    500: '#2c1c71',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c71;
$custom-light: #6e5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c71",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 251.294,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30892,
    "c": 0.13728,
    "h": 283.5
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2C1C71
secondary
#93A643
accent
#E344C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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