#2C1154#2C1154

#2C1154 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.113 H 296.1°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2C1154
RGBrgb(44, 17, 84)
HSLhsl(264, 66%, 20%)
HSVhsv(264, 80%, 33%)
CMYKcmyk(47.6%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.09, 29.77, -35.46)
CIE-LCHlch(13.09, 46.30, 310.01°)
OKLaboklab(26.41% 0.0496 -0.1015)
OKLCHoklch(26.41% 0.113 296.1)
XYZxyz(2.8390, 1.5764, 8.5405)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1154 #395411
analogous
#111854 #2C1154 #4E1154
triadic
#2C1154 #542C11 #11542C
tetradic
#2C1154 #541118 #395411 #11544E
square
#2C1154 #541118 #395411 #11544E
split-complementary
#2C1154 #544E11 #185411
monochromatic
#0D0519 #110721 #2C1154 #471B87 #6126BA

Accessibility & contrast

On white

15.97
#2C1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1154
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1154#FFFFFF#000000##FFFFFF
##2C11541.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#212231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1154;
/* rgb */ color: rgb(44, 17, 84);
/* oklch */ color: oklch(26.4% 0.113 296.1);
Tailwind
colors: {
  custom: {
    50: '#6a5285',
    500: '#2c1154',
    950: '#000000',
  },
}
SCSS
$custom: #2c1154;
$custom-light: #6a5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1154",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 264.179,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26406,
    "c": 0.11301,
    "h": 296.1
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#2C1154
secondary
#698D34
accent
#E93FA4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1154

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

Preview Lab → · Contrast checker → · Palette generator →

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