#2C1357#2C1357

#2C1357 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.114 H 294.2°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2C1357
RGBrgb(44, 19, 87)
HSLhsl(262, 64%, 21%)
HSVhsv(262, 78%, 34%)
CMYKcmyk(49.4%, 78.2%, 0%, 65.9%)
CIE-LABlab(13.76, 29.57, -36.39)
CIE-LCHlch(13.76, 46.89, 309.10°)
OKLaboklab(26.98% 0.0468 -0.1043)
OKLCHoklch(26.98% 0.114 294.2)
XYZxyz(2.9914, 1.6893, 9.1834)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1357 #3E5713
analogous
#131C57 #2C1357 #4E1357
triadic
#2C1357 #572C13 #13572C
tetradic
#2C1357 #57131C #3E5713 #13574E
square
#2C1357 #57131C #3E5713 #13574E
split-complementary
#2C1357 #574E13 #1C5713
monochromatic
#0D0519 #130825 #2C1357 #451E89 #5F29BB

Accessibility & contrast

On white

15.70
#2C1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C1357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1357
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1357#FFFFFF#000000##FFFFFF
##2C13571.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#202533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1357;
/* rgb */ color: rgb(44, 19, 87);
/* oklch */ color: oklch(27.0% 0.114 294.2);
Tailwind
colors: {
  custom: {
    50: '#6a5387',
    500: '#2c1357',
    950: '#000000',
  },
}
SCSS
$custom: #2c1357;
$custom-light: #6a5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1357",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 262.059,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26975,
    "c": 0.11428,
    "h": 294.2
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#2C1357
secondary
#6F8F36
accent
#E741AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1357

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

Preview Lab → · Contrast checker → · Palette generator →

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