#2C177A#2C177A

#2C177A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.154 H 282.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2C177A
RGBrgb(44, 23, 122)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 48%)
CMYKcmyk(63.9%, 81.1%, 0%, 52.2%)
CIE-LABlab(18.16, 38.31, -52.17)
CIE-LCHlch(18.16, 64.73, 306.29°)
OKLaboklab(31.16% 0.0333 -0.1505)
OKLCHoklch(31.16% 0.154 282.5)
XYZxyz(4.8569, 2.5531, 18.6454)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C177A #657A17
analogous
#17337A #2C177A #5D177A
triadic
#2C177A #7A2C17 #177A2C
tetradic
#2C177A #7A1733 #657A17 #177A5D
square
#2C177A #7A1733 #657A17 #177A5D
split-complementary
#2C177A #7A5D17 #337A17
monochromatic
#09051A #190D47 #2C177A #3F21AD #5633D9

Accessibility & contrast

On white

13.90
#2C177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C177A
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C177A#FFFFFF#000000##FFFFFF
##2C177A1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c177a;
/* rgb */ color: rgb(44, 23, 122);
/* oklch */ color: oklch(31.2% 0.154 282.5);
Tailwind
colors: {
  custom: {
    50: '#7157a2',
    500: '#2c177a',
    950: '#000000',
  },
}
SCSS
$custom: #2c177a;
$custom-light: #7157a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c177a",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 252.727,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31162,
    "c": 0.15412,
    "h": 282.5
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#2C177A
secondary
#97AF3E
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C177A

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

Preview Lab → · Contrast checker → · Palette generator →

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