#2C177D#2C177D

#2C177D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.158 H 281.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2C177D
RGBrgb(44, 23, 125)
HSLhsl(252, 69%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(64.8%, 81.6%, 0%, 51%)
CIE-LABlab(18.49, 39.25, -53.54)
CIE-LCHlch(18.49, 66.38, 306.25°)
OKLaboklab(31.49% 0.0324 -0.1544)
OKLCHoklch(31.49% 0.158 281.8)
XYZxyz(5.0456, 2.6286, 19.6395)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C177D #687D17
analogous
#17357D #2C177D #5F177D
triadic
#2C177D #7D2C17 #177D2C
tetradic
#2C177D #7D1735 #687D17 #177D5F
square
#2C177D #7D1735 #687D17 #177D5F
split-complementary
#2C177D #7D5F17 #357D17
monochromatic
#09051A #1A0D49 #2C177D #3E21B1 #5735DA

Accessibility & contrast

On white

13.76
#2C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C177D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C177D#FFFFFF#000000##FFFFFF
##2C177D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c177d;
/* rgb */ color: rgb(44, 23, 125);
/* oklch */ color: oklch(31.5% 0.158 281.8);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2c177d',
    950: '#000000',
  },
}
SCSS
$custom: #2c177d;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c177d",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 252.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31494,
    "c": 0.15781,
    "h": 281.8
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#2C177D
secondary
#9AB23E
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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