#2C176C#2C176C

#2C176C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.137 H 285.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2C176C
RGBrgb(44, 23, 108)
HSLhsl(255, 65%, 26%)
HSVhsv(255, 79%, 42%)
CMYKcmyk(59.3%, 78.7%, 0%, 57.6%)
CIE-LABlab(16.65, 33.90, -45.60)
CIE-LCHlch(16.65, 56.82, 306.63°)
OKLaboklab(29.66% 0.0375 -0.1313)
OKLCHoklch(29.66% 0.137 285.9)
XYZxyz(4.0511, 2.2307, 14.4016)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C176C #576C17
analogous
#172C6C #2C176C #56176C
triadic
#2C176C #6C2C17 #176C2C
tetradic
#2C176C #6C172C #576C17 #176C56
square
#2C176C #6C172C #576C17 #176C56
split-complementary
#2C176C #6C5617 #2C6C17
monochromatic
#0A0519 #170C3A #2C176C #41229E #552CD1

Accessibility & contrast

On white

14.52
#2C176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C176C
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C176C#FFFFFF#000000##FFFFFF
##2C176C1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#0D2F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c176c;
/* rgb */ color: rgb(44, 23, 108);
/* oklch */ color: oklch(29.7% 0.137 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5797',
    500: '#2c176c',
    950: '#000000',
  },
}
SCSS
$custom: #2c176c;
$custom-light: #6e5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2c176c",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 254.824,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29659,
    "c": 0.13653,
    "h": 285.9
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#2C176C
secondary
#89A23D
accent
#E840BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2C176C

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

Preview Lab → · Contrast checker → · Palette generator →

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