#2C1151#2C1151

#2C1151 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.109 H 297.5°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2C1151
RGBrgb(44, 17, 81)
HSLhsl(265, 65%, 19%)
HSVhsv(265, 79%, 32%)
CMYKcmyk(45.7%, 79%, 0%, 68.2%)
CIE-LABlab(12.80, 28.87, -33.88)
CIE-LCHlch(12.80, 44.52, 310.44°)
OKLaboklab(26.12% 0.0504 -0.0969)
OKLCHoklch(26.12% 0.109 297.5)
XYZxyz(2.7240, 1.5304, 7.9349)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1151 #365111
analogous
#111651 #2C1151 #4C1151
triadic
#2C1151 #512C11 #11512C
tetradic
#2C1151 #511116 #365111 #11514C
square
#2C1151 #511116 #365111 #11514C
split-complementary
#2C1151 #514C11 #165111
monochromatic
#0E0519 #11061E #2C1151 #471C84 #6326B6

Accessibility & contrast

On white

16.08
#2C1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1151
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1151#FFFFFF#000000##FFFFFF
##2C11511.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#232130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1151;
/* rgb */ color: rgb(44, 17, 81);
/* oklch */ color: oklch(26.1% 0.109 297.5);
Tailwind
colors: {
  custom: {
    50: '#695282',
    500: '#2c1151',
    950: '#000000',
  },
}
SCSS
$custom: #2c1151;
$custom-light: #695282;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1151",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 265.313,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26116,
    "c": 0.10921,
    "h": 297.5
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#2C1151
secondary
#668A34
accent
#E840A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1151

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

Preview Lab → · Contrast checker → · Palette generator →

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