#2C1472#2C1472

#2C1472 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.147 H 284.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2C1472
RGBrgb(44, 20, 114)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(61.4%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.75, 37.34, -49.34)
CIE-LCHlch(16.75, 61.88, 307.12°)
OKLaboklab(29.92% 0.0379 -0.1422)
OKLCHoklch(29.92% 0.147 284.9)
XYZxyz(4.3252, 2.2504, 16.1228)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1472 #5A7214
analogous
#142B72 #2C1472 #5B1472
triadic
#2C1472 #722C14 #14722C
tetradic
#2C1472 #72142B #5A7214 #14725B
square
#2C1472 #72142B #5A7214 #14725B
split-complementary
#2C1472 #725B14 #2B7214
monochromatic
#0A051A #180B3E #2C1472 #401DA6 #5527D9

Accessibility & contrast

On white

14.48
#2C1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1472
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1472#FFFFFF#000000##FFFFFF
##2C14721.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#033043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1472;
/* rgb */ color: rgb(44, 20, 114);
/* oklch */ color: oklch(29.9% 0.147 284.9);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2c1472',
    950: '#000000',
  },
}
SCSS
$custom: #2c1472;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1472",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 255.319,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29919,
    "c": 0.14714,
    "h": 284.9
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1472

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

Preview Lab → · Contrast checker → · Palette generator →

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