#2C1370#2C1370

#2C1370 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.146 H 285.6°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1370
RGBrgb(44, 19, 112)
HSLhsl(256, 71%, 26%)
HSVhsv(256, 83%, 44%)
CMYKcmyk(60.7%, 83%, 0%, 56.1%)
CIE-LABlab(16.36, 37.22, -48.69)
CIE-LCHlch(16.36, 61.29, 307.40°)
OKLaboklab(29.58% 0.0392 -0.1403)
OKLCHoklch(29.58% 0.146 285.6)
XYZxyz(4.1953, 2.1708, 15.5240)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1370 #577013
analogous
#132870 #2C1370 #5A1370
triadic
#2C1370 #702C13 #13702C
tetradic
#2C1370 #701328 #577013 #13705A
square
#2C1370 #701328 #577013 #13705A
split-complementary
#2C1370 #705A13 #287013
monochromatic
#0A041A #170A3C #2C1370 #411CA4 #5525D9

Accessibility & contrast

On white

14.64
#2C1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1370
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1370#FFFFFF#000000##FFFFFF
##2C13701.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#072F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1370;
/* rgb */ color: rgb(44, 19, 112);
/* oklch */ color: oklch(29.6% 0.146 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f559a',
    500: '#2c1370',
    950: '#000000',
  },
}
SCSS
$custom: #2c1370;
$custom-light: #6f559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1370",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 256.129,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29582,
    "c": 0.14565,
    "h": 285.6
  },
  "luminance": 0.02171
}

Semantic roles & 50–950 ramp

primary
#2C1370
secondary
#89A738
accent
#EE3ABD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1370

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

Preview Lab → · Contrast checker → · Palette generator →

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