#2C1167#2C1167

#2C1167 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.137 H 288.7°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2C1167
RGBrgb(44, 17, 103)
HSLhsl(259, 72%, 24%)
HSVhsv(259, 83%, 40%)
CMYKcmyk(57.3%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.04, 35.47, -44.98)
CIE-LCHlch(15.04, 57.28, 308.26°)
OKLaboklab(28.37% 0.0438 -0.1294)
OKLCHoklch(28.37% 0.137 288.7)
XYZxyz(3.6866, 1.9155, 13.0048)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1167 #4C6711
analogous
#112167 #2C1167 #571167
triadic
#2C1167 #672C11 #11672C
tetradic
#2C1167 #671121 #4C6711 #116757
square
#2C1167 #671121 #4C6711 #116757
split-complementary
#2C1167 #675711 #216711
monochromatic
#0B041A #160832 #2C1167 #421A9C #5922D0

Accessibility & contrast

On white

15.18
#2C1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1167
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1167#FFFFFF#000000##FFFFFF
##2C11671.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#142A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1167;
/* rgb */ color: rgb(44, 17, 103);
/* oklch */ color: oklch(28.4% 0.137 288.7);
Tailwind
colors: {
  custom: {
    50: '#6d5393',
    500: '#2c1167',
    950: '#000000',
  },
}
SCSS
$custom: #2c1167;
$custom-light: #6d5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1167",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 258.837,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28368,
    "c": 0.13661,
    "h": 288.7
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#2C1167
secondary
#7E9F35
accent
#EE39B6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1167

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

Preview Lab → · Contrast checker → · Palette generator →

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