#2C1656#2C1656

#2C1656 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.109 H 293.7°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2C1656
RGBrgb(44, 22, 86)
HSLhsl(261, 59%, 21%)
HSVhsv(261, 74%, 34%)
CMYKcmyk(48.8%, 74.4%, 0%, 66.3%)
CIE-LABlab(14.29, 27.52, -34.85)
CIE-LCHlch(14.29, 44.41, 308.30°)
OKLaboklab(27.32% 0.0437 -0.0997)
OKLCHoklch(27.32% 0.109 293.7)
XYZxyz(3.0049, 1.7811, 8.9878)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1656 #405616
analogous
#162056 #2C1656 #4C1656
triadic
#2C1656 #562C16 #16562C
tetradic
#2C1656 #561620 #405616 #16564C
square
#2C1656 #561620 #405616 #16564C
split-complementary
#2C1656 #564C16 #205616
monochromatic
#0C0618 #130A25 #2C1656 #452287 #5E2FB7

Accessibility & contrast

On white

15.48
#2C1656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1656
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1656#FFFFFF#000000##FFFFFF
##2C16561.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#202634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1656;
/* rgb */ color: rgb(44, 22, 86);
/* oklch */ color: oklch(27.3% 0.109 293.7);
Tailwind
colors: {
  custom: {
    50: '#6a5586',
    500: '#2c1656',
    950: '#000000',
  },
}
SCSS
$custom: #2c1656;
$custom-light: #6a5586;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1656",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 260.625,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27323,
    "c": 0.10891,
    "h": 293.7
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#2C1656
secondary
#718D3A
accent
#E245AC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1656

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

Preview Lab → · Contrast checker → · Palette generator →

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