#2C1256#2C1256

#2C1256 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.114 H 294.9°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1256
RGBrgb(44, 18, 86)
HSLhsl(263, 65%, 20%)
HSVhsv(263, 79%, 34%)
CMYKcmyk(48.8%, 79.1%, 0%, 66.3%)
CIE-LABlab(13.47, 29.82, -36.19)
CIE-LCHlch(13.47, 46.90, 309.49°)
OKLaboklab(26.74% 0.0481 -0.1037)
OKLCHoklch(26.74% 0.114 294.9)
XYZxyz(2.9343, 1.6399, 8.9642)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1256 #3C5612
analogous
#121A56 #2C1256 #4E1256
triadic
#2C1256 #562C12 #12562C
tetradic
#2C1256 #56121A #3C5612 #12564E
square
#2C1256 #56121A #3C5612 #12564E
split-complementary
#2C1256 #564E12 #1A5612
monochromatic
#0D0519 #120723 #2C1256 #461D89 #6027BB

Accessibility & contrast

On white

15.81
#2C1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1256
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1256#FFFFFF#000000##FFFFFF
##2C12561.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1256;
/* rgb */ color: rgb(44, 18, 86);
/* oklch */ color: oklch(26.7% 0.114 294.9);
Tailwind
colors: {
  custom: {
    50: '#6a5386',
    500: '#2c1256',
    950: '#000000',
  },
}
SCSS
$custom: #2c1256;
$custom-light: #6a5386;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1256",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 262.941,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26738,
    "c": 0.11428,
    "h": 294.9
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#2C1256
secondary
#6C8F35
accent
#E83FA8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1256

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

Preview Lab → · Contrast checker → · Palette generator →

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