#2C1376#2C1376

#2C1376 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.153 H 284.1°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#2C1376
RGBrgb(44, 19, 118)
HSLhsl(255, 72%, 27%)
HSVhsv(255, 84%, 46%)
CMYKcmyk(62.7%, 83.9%, 0%, 53.7%)
CIE-LABlab(17.03, 39.05, -51.46)
CIE-LCHlch(17.03, 64.60, 307.19°)
OKLaboklab(30.25% 0.0372 -0.1483)
OKLCHoklch(30.25% 0.153 284.1)
XYZxyz(4.5406, 2.3089, 17.3424)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1376 #5D7613
analogous
#132B76 #2C1376 #5E1376
triadic
#2C1376 #762C13 #13762C
tetradic
#2C1376 #76132B #5D7613 #13765E
square
#2C1376 #76132B #5D7613 #13765E
split-complementary
#2C1376 #765E13 #2B7613
monochromatic
#0A041A #180B41 #2C1376 #401BAB #5527DC

Accessibility & contrast

On white

14.37
#2C1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1376
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1376#FFFFFF#000000##FFFFFF
##2C13761.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1376;
/* rgb */ color: rgb(44, 19, 118);
/* oklch */ color: oklch(30.2% 0.153 284.1);
Tailwind
colors: {
  custom: {
    50: '#70559f',
    500: '#2c1376',
    950: '#000000',
  },
}
SCSS
$custom: #2c1376;
$custom-light: #70559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1376",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 255.152,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30248,
    "c": 0.15293,
    "h": 284.1
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#2C1376
secondary
#8FAC39
accent
#EF39C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1376

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

Preview Lab → · Contrast checker → · Palette generator →

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