#2C1371#2C1371

#2C1371 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.147 H 285.4°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2C1371
RGBrgb(44, 19, 113)
HSLhsl(256, 71%, 26%)
HSVhsv(256, 83%, 44%)
CMYKcmyk(61.1%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.47, 37.53, -49.16)
CIE-LCHlch(16.47, 61.85, 307.36°)
OKLaboklab(29.69% 0.0389 -0.1416)
OKLCHoklch(29.69% 0.147 285.4)
XYZxyz(4.2513, 2.1932, 15.8189)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1371 #587113
analogous
#132971 #2C1371 #5B1371
triadic
#2C1371 #712C13 #13712C
tetradic
#2C1371 #711329 #587113 #13715B
square
#2C1371 #711329 #587113 #13715B
split-complementary
#2C1371 #715B13 #297113
monochromatic
#0A041A #180A3D #2C1371 #401CA5 #5525DA

Accessibility & contrast

On white

14.60
#2C1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1371
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1371#FFFFFF#000000##FFFFFF
##2C13711.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#052F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1371;
/* rgb */ color: rgb(44, 19, 113);
/* oklch */ color: oklch(29.7% 0.147 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f559b',
    500: '#2c1371',
    950: '#000000',
  },
}
SCSS
$custom: #2c1371;
$custom-light: #6f559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1371",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 255.957,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29692,
    "c": 0.14687,
    "h": 285.4
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#2C1371
secondary
#8AA838
accent
#EE3ABE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1371

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

Preview Lab → · Contrast checker → · Palette generator →

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