#2C1352#2C1352

#2C1352 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.108 H 296.4°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1352
RGBrgb(44, 19, 82)
HSLhsl(264, 62%, 20%)
HSVhsv(264, 77%, 32%)
CMYKcmyk(46.3%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.29, 28.05, -33.76)
CIE-LCHlch(13.29, 43.90, 309.72°)
OKLaboklab(26.5% 0.048 -0.0965)
OKLCHoklch(26.5% 0.108 296.4)
XYZxyz(2.7942, 1.6104, 8.1446)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1352 #395213
analogous
#131952 #2C1352 #4C1352
triadic
#2C1352 #522C13 #13522C
tetradic
#2C1352 #521319 #395213 #13524C
square
#2C1352 #521319 #395213 #13524C
split-complementary
#2C1352 #524C13 #195213
monochromatic
#0D0619 #110720 #2C1352 #471F84 #612AB5

Accessibility & contrast

On white

15.89
#2C1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1352
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1352#FFFFFF#000000##FFFFFF
##2C13521.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#222331
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1352;
/* rgb */ color: rgb(44, 19, 82);
/* oklch */ color: oklch(26.5% 0.108 296.4);
Tailwind
colors: {
  custom: {
    50: '#695383',
    500: '#2c1352',
    950: '#000000',
  },
}
SCSS
$custom: #2c1352;
$custom-light: #695383;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1352",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 263.81,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26495,
    "c": 0.10779,
    "h": 296.4
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#2C1352
secondary
#698A36
accent
#E542A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1352

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

Preview Lab → · Contrast checker → · Palette generator →

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