#2C1677#2C1677

#2C1677 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.151 H 283.3°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2C1677
RGBrgb(44, 22, 119)
HSLhsl(254, 69%, 28%)
HSVhsv(254, 82%, 47%)
CMYKcmyk(63%, 81.5%, 0%, 53.3%)
CIE-LABlab(17.65, 37.89, -51.09)
CIE-LCHlch(17.65, 63.60, 306.56°)
OKLaboklab(30.71% 0.0349 -0.1473)
OKLCHoklch(30.71% 0.151 283.3)
XYZxyz(4.6544, 2.4409, 17.6751)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1677 #617716
analogous
#163177 #2C1677 #5C1677
triadic
#2C1677 #772C16 #16772C
tetradic
#2C1677 #771631 #617716 #16775C
square
#2C1677 #771631 #617716 #16775C
split-complementary
#2C1677 #775C16 #317716
monochromatic
#0A051A #190C43 #2C1677 #3F20AB #552FD9

Accessibility & contrast

On white

14.11
#2C1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1677
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1677#FFFFFF#000000##FFFFFF
##2C16771.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1677;
/* rgb */ color: rgb(44, 22, 119);
/* oklch */ color: oklch(30.7% 0.151 283.3);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2c1677',
    950: '#000000',
  },
}
SCSS
$custom: #2c1677;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1677",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 253.608,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3071,
    "c": 0.15137,
    "h": 283.3
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#2C1677
secondary
#93AC3C
accent
#EC3CC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1677

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

Preview Lab → · Contrast checker → · Palette generator →

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