#2C1456#2C1456

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

Color values

HEX#2C1456
RGBrgb(44, 20, 86)
HSLhsl(262, 62%, 21%)
HSVhsv(262, 77%, 34%)
CMYKcmyk(48.8%, 76.7%, 0%, 66.3%)
CIE-LABlab(13.87, 28.70, -35.54)
CIE-LCHlch(13.87, 45.68, 308.92°)
OKLaboklab(27.02% 0.046 -0.1018)
OKLCHoklch(27.02% 0.112 294.3)
XYZxyz(2.9681, 1.7076, 8.9755)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1456 #3E5614
analogous
#141D56 #2C1456 #4D1456
triadic
#2C1456 #562C14 #14562C
tetradic
#2C1456 #56141D #3E5614 #14564D
square
#2C1456 #56141D #3E5614 #14564D
split-complementary
#2C1456 #564D14 #1D5614
monochromatic
#0D0619 #130824 #2C1456 #452088 #5F2BB9

Accessibility & contrast

On white

15.65
#2C1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1456
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1456#FFFFFF#000000##FFFFFF
##2C14561.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1456;
/* rgb */ color: rgb(44, 20, 86);
/* oklch */ color: oklch(27.0% 0.112 294.3);
Tailwind
colors: {
  custom: {
    50: '#6a5486',
    500: '#2c1456',
    950: '#000000',
  },
}
SCSS
$custom: #2c1456;
$custom-light: #6a5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1456",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 261.818,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27022,
    "c": 0.11166,
    "h": 294.3
  },
  "luminance": 0.01708
}

Semantic roles & 50–950 ramp

primary
#2C1456
secondary
#6F8E38
accent
#E542AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1456

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

Preview Lab → · Contrast checker → · Palette generator →

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