#2C1351#2C1351

#2C1351 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.106 H 296.9°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2C1351
RGBrgb(44, 19, 81)
HSLhsl(264, 62%, 20%)
HSVhsv(264, 77%, 32%)
CMYKcmyk(45.7%, 76.5%, 0%, 68.2%)
CIE-LABlab(13.20, 27.75, -33.23)
CIE-LCHlch(13.20, 43.29, 309.86°)
OKLaboklab(26.4% 0.0482 -0.095)
OKLCHoklch(26.4% 0.106 296.9)
XYZxyz(2.7564, 1.5952, 7.9457)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1351 #385113
analogous
#131951 #2C1351 #4B1351
triadic
#2C1351 #512C13 #13512C
tetradic
#2C1351 #511319 #385113 #13514B
square
#2C1351 #511319 #385113 #13514B
split-complementary
#2C1351 #514B13 #195113
monochromatic
#0D0619 #11071F #2C1351 #471F83 #622AB4

Accessibility & contrast

On white

15.92
#2C1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1351
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1351#FFFFFF#000000##FFFFFF
##2C13511.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#232230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1351;
/* rgb */ color: rgb(44, 19, 81);
/* oklch */ color: oklch(26.4% 0.106 296.9);
Tailwind
colors: {
  custom: {
    50: '#695382',
    500: '#2c1351',
    950: '#000000',
  },
}
SCSS
$custom: #2c1351;
$custom-light: #695382;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1351",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 264.194,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26401,
    "c": 0.10648,
    "h": 296.9
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#2C1351
secondary
#688A36
accent
#E543A4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1351

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

Preview Lab → · Contrast checker → · Palette generator →

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