#2C1152#2C1152

#2C1152 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.110 H 297.0°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1152
RGBrgb(44, 17, 82)
HSLhsl(265, 66%, 19%)
HSVhsv(265, 79%, 32%)
CMYKcmyk(46.3%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.89, 29.17, -34.41)
CIE-LCHlch(12.89, 45.11, 310.29°)
OKLaboklab(26.21% 0.0502 -0.0984)
OKLCHoklch(26.21% 0.11 297)
XYZxyz(2.7617, 1.5455, 8.1338)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1152 #375211
analogous
#111752 #2C1152 #4D1152
triadic
#2C1152 #522C11 #11522C
tetradic
#2C1152 #521117 #375211 #11524D
square
#2C1152 #521117 #375211 #11524D
split-complementary
#2C1152 #524D11 #175211
monochromatic
#0E0519 #11061F #2C1152 #471C85 #6226B7

Accessibility & contrast

On white

16.04
#2C1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1152
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1152#FFFFFF#000000##FFFFFF
##2C11521.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#222230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1152;
/* rgb */ color: rgb(44, 17, 82);
/* oklch */ color: oklch(26.2% 0.110 297.0);
Tailwind
colors: {
  custom: {
    50: '#6a5283',
    500: '#2c1152',
    950: '#000000',
  },
}
SCSS
$custom: #2c1152;
$custom-light: #6a5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1152",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 264.923,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26212,
    "c": 0.11047,
    "h": 297
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#2C1152
secondary
#678B34
accent
#E93FA2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1152

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

Preview Lab → · Contrast checker → · Palette generator →

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