#2C1372#2C1372

#2C1372 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.148 H 285.1°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2C1372
RGBrgb(44, 19, 114)
HSLhsl(256, 71%, 26%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(61.4%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.58, 37.83, -49.62)
CIE-LCHlch(16.58, 62.40, 307.32°)
OKLaboklab(29.8% 0.0386 -0.143)
OKLCHoklch(29.8% 0.148 285.1)
XYZxyz(4.3079, 2.2159, 16.1170)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1372 #597213
analogous
#132972 #2C1372 #5B1372
triadic
#2C1372 #722C13 #13722C
tetradic
#2C1372 #721329 #597213 #13725B
square
#2C1372 #721329 #597213 #13725B
split-complementary
#2C1372 #725B13 #297213
monochromatic
#0A041A #180A3E #2C1372 #401CA6 #5525DB

Accessibility & contrast

On white

14.55
#2C1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1372
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1372#FFFFFF#000000##FFFFFF
##2C13721.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#032F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1372;
/* rgb */ color: rgb(44, 19, 114);
/* oklch */ color: oklch(29.8% 0.148 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2c1372',
    950: '#000000',
  },
}
SCSS
$custom: #2c1372;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1372",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 255.789,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29802,
    "c": 0.14809,
    "h": 285.1
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#2C1372
secondary
#8BA938
accent
#EE3ABF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1372

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

Preview Lab → · Contrast checker → · Palette generator →

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