#2C1471#2C1471

#2C1471 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.146 H 285.2°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2C1471
RGBrgb(44, 20, 113)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 82%, 44%)
CMYKcmyk(61.1%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.64, 37.04, -48.88)
CIE-LCHlch(16.64, 61.32, 307.15°)
OKLaboklab(29.81% 0.0382 -0.1408)
OKLCHoklch(29.81% 0.146 285.2)
XYZxyz(4.2686, 2.2278, 15.8247)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1471 #597114
analogous
#142A71 #2C1471 #5A1471
triadic
#2C1471 #712C14 #14712C
tetradic
#2C1471 #71142A #597114 #14715A
square
#2C1471 #71142A #597114 #14715A
split-complementary
#2C1471 #715A14 #2A7114
monochromatic
#0A051A #180B3D #2C1471 #401DA5 #5527D9

Accessibility & contrast

On white

14.53
#2C1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1471
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1471#FFFFFF#000000##FFFFFF
##2C14711.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#052F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1471;
/* rgb */ color: rgb(44, 20, 113);
/* oklch */ color: oklch(29.8% 0.146 285.2);
Tailwind
colors: {
  custom: {
    50: '#6f559b',
    500: '#2c1471',
    950: '#000000',
  },
}
SCSS
$custom: #2c1471;
$custom-light: #6f559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1471",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 255.484,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2981,
    "c": 0.14591,
    "h": 285.2
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2C1471
secondary
#8BA739
accent
#ED3BBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1471

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

Preview Lab → · Contrast checker → · Palette generator →

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