#2C1160#2C1160

#2C1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.128 H 291.1°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2C1160
RGBrgb(44, 17, 96)
HSLhsl(261, 70%, 22%)
HSVhsv(261, 82%, 38%)
CMYKcmyk(54.2%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.29, 33.36, -41.57)
CIE-LCHlch(14.29, 53.30, 308.75°)
OKLaboklab(27.62% 0.0461 -0.1194)
OKLCHoklch(27.62% 0.128 291.1)
XYZxyz(3.3499, 1.7808, 11.2313)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1160 #456011
analogous
#111E60 #2C1160 #541160
triadic
#2C1160 #602C11 #11602C
tetradic
#2C1160 #60111E #456011 #116054
square
#2C1160 #60111E #456011 #116054
split-complementary
#2C1160 #605411 #1E6011
monochromatic
#0C051A #14082C #2C1160 #441A94 #5C23C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1160#FFFFFF#000000##FFFFFF
##2C11601.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)
#002562
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#1A2738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1160;
/* rgb */ color: rgb(44, 17, 96);
/* oklch */ color: oklch(27.6% 0.128 291.1);
Tailwind
colors: {
  custom: {
    50: '#6c538e',
    500: '#2c1160',
    950: '#000000',
  },
}
SCSS
$custom: #2c1160;
$custom-light: #6c538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1160",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 260.506,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27623,
    "c": 0.12801,
    "h": 291.1
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#2C1160
secondary
#769934
accent
#ED3BB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C1160

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

Preview Lab → · Contrast checker → · Palette generator →

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