#2C1153#2C1153

#2C1153 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.112 H 296.5°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1153
RGBrgb(44, 17, 83)
HSLhsl(265, 66%, 20%)
HSVhsv(265, 80%, 33%)
CMYKcmyk(47%, 79.5%, 0%, 67.5%)
CIE-LABlab(12.99, 29.47, -34.94)
CIE-LCHlch(12.99, 45.71, 310.14°)
OKLaboklab(26.31% 0.0499 -0.1)
OKLCHoklch(26.31% 0.112 296.5)
XYZxyz(2.8001, 1.5608, 8.3357)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1153 #385311
analogous
#111753 #2C1153 #4D1153
triadic
#2C1153 #532C11 #11532C
tetradic
#2C1153 #531117 #385311 #11534D
square
#2C1153 #531117 #385311 #11534D
split-complementary
#2C1153 #534D11 #175311
monochromatic
#0D0519 #110720 #2C1153 #471B86 #6226B9

Accessibility & contrast

On white

16.00
#2C1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1153
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1153#FFFFFF#000000##FFFFFF
##2C11531.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#222231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1153;
/* rgb */ color: rgb(44, 17, 83);
/* oklch */ color: oklch(26.3% 0.112 296.5);
Tailwind
colors: {
  custom: {
    50: '#6a5284',
    500: '#2c1153',
    950: '#000000',
  },
}
SCSS
$custom: #2c1153;
$custom-light: #6a5284;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1153",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 264.545,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26309,
    "c": 0.11174,
    "h": 296.5
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#2C1153
secondary
#688C34
accent
#E93FA3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1153

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

Preview Lab → · Contrast checker → · Palette generator →

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