#2C1473#2C1473

#2C1473 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.148 H 284.7°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2C1473
RGBrgb(44, 20, 115)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(61.7%, 82.6%, 0%, 54.9%)
CIE-LABlab(16.86, 37.65, -49.81)
CIE-LCHlch(16.86, 62.44, 307.09°)
OKLaboklab(30.03% 0.0376 -0.1435)
OKLCHoklch(30.03% 0.148 284.7)
XYZxyz(4.3824, 2.2733, 16.4242)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1473 #5B7314
analogous
#142C73 #2C1473 #5C1473
triadic
#2C1473 #732C14 #14732C
tetradic
#2C1473 #73142C #5B7314 #14735C
square
#2C1473 #73142C #5B7314 #14735C
split-complementary
#2C1473 #735C14 #2C7314
monochromatic
#0A051A #180B3F #2C1473 #401DA7 #5528DA

Accessibility & contrast

On white

14.43
#2C1473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1473
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1473#FFFFFF#000000##FFFFFF
##2C14731.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#013044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1473;
/* rgb */ color: rgb(44, 20, 115);
/* oklch */ color: oklch(30.0% 0.148 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2c1473',
    950: '#000000',
  },
}
SCSS
$custom: #2c1473;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1473",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 255.158,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30029,
    "c": 0.14837,
    "h": 284.7
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#2C1473
secondary
#8DA93A
accent
#ED3BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1473

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

Preview Lab → · Contrast checker → · Palette generator →

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