#2C1356#2C1356

#2C1356 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.113 H 294.6°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2C1356
RGBrgb(44, 19, 86)
HSLhsl(262, 64%, 21%)
HSVhsv(262, 78%, 34%)
CMYKcmyk(48.8%, 77.9%, 0%, 66.3%)
CIE-LABlab(13.67, 29.27, -35.87)
CIE-LCHlch(13.67, 46.30, 309.21°)
OKLaboklab(26.88% 0.047 -0.1027)
OKLCHoklch(26.88% 0.113 294.6)
XYZxyz(2.9508, 1.6730, 8.9697)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1356 #3D5613
analogous
#131B56 #2C1356 #4D1356
triadic
#2C1356 #562C13 #13562C
tetradic
#2C1356 #56131B #3D5613 #13564D
square
#2C1356 #56131B #3D5613 #13564D
split-complementary
#2C1356 #564D13 #1B5613
monochromatic
#0D0619 #120824 #2C1356 #461E88 #5F29BA

Accessibility & contrast

On white

15.74
#2C1356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1356
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1356#FFFFFF#000000##FFFFFF
##2C13561.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#202433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1356;
/* rgb */ color: rgb(44, 19, 86);
/* oklch */ color: oklch(26.9% 0.113 294.6);
Tailwind
colors: {
  custom: {
    50: '#6a5386',
    500: '#2c1356',
    950: '#000000',
  },
}
SCSS
$custom: #2c1356;
$custom-light: #6a5386;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1356",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 262.388,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26878,
    "c": 0.11299,
    "h": 294.6
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#2C1356
secondary
#6E8E36
accent
#E741A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1356

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

Preview Lab → · Contrast checker → · Palette generator →

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