#2C1373#2C1373

#2C1373 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.149 H 284.8°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2C1373
RGBrgb(44, 19, 115)
HSLhsl(256, 72%, 26%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(61.7%, 83.5%, 0%, 54.9%)
CIE-LABlab(16.69, 38.14, -50.08)
CIE-LCHlch(16.69, 62.95, 307.29°)
OKLaboklab(29.91% 0.0382 -0.1443)
OKLCHoklch(29.91% 0.149 284.8)
XYZxyz(4.3651, 2.2387, 16.4184)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1373 #5A7313
analogous
#132A73 #2C1373 #5C1373
triadic
#2C1373 #732C13 #13732C
tetradic
#2C1373 #73132A #5A7313 #13735C
square
#2C1373 #73132A #5A7313 #13735C
split-complementary
#2C1373 #735C13 #2A7313
monochromatic
#0A041A #180A3E #2C1373 #401CA8 #5525DB

Accessibility & contrast

On white

14.50
#2C1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C1373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1373
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1373#FFFFFF#000000##FFFFFF
##2C13731.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#023043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1373;
/* rgb */ color: rgb(44, 19, 115);
/* oklch */ color: oklch(29.9% 0.149 284.8);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2c1373',
    950: '#000000',
  },
}
SCSS
$custom: #2c1373;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1373",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 255.625,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29913,
    "c": 0.1493,
    "h": 284.8
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#2C1373
secondary
#8CAA38
accent
#EE39BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1373

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

Preview Lab → · Contrast checker → · Palette generator →

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