#2C1672#2C1672

#2C1672 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.145 H 284.6°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2C1672
RGBrgb(44, 22, 114)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 45%)
CMYKcmyk(61.4%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.10, 36.33, -48.76)
CIE-LCHlch(17.10, 60.81, 306.69°)
OKLaboklab(30.17% 0.0365 -0.1405)
OKLCHoklch(30.17% 0.145 284.6)
XYZxyz(4.3619, 2.3239, 16.1350)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1672 #5C7216
analogous
#162E72 #2C1672 #5A1672
triadic
#2C1672 #722C16 #16722C
tetradic
#2C1672 #72162E #5C7216 #16725A
square
#2C1672 #72162E #5C7216 #16725A
split-complementary
#2C1672 #725A16 #2E7216
monochromatic
#0A051A #180C3F #2C1672 #4020A5 #552CD6

Accessibility & contrast

On white

14.34
#2C1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1672
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1672#FFFFFF#000000##FFFFFF
##2C16721.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#033143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1672;
/* rgb */ color: rgb(44, 22, 114);
/* oklch */ color: oklch(30.2% 0.145 284.6);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2c1672',
    950: '#000000',
  },
}
SCSS
$custom: #2c1672;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1672",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 254.348,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30165,
    "c": 0.14517,
    "h": 284.6
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2C1672
secondary
#8EA83C
accent
#EB3DC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1672

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

Preview Lab → · Contrast checker → · Palette generator →

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