#2C1276#2C1276

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

Color values

HEX#2C1276
RGBrgb(44, 18, 118)
HSLhsl(256, 74%, 27%)
HSVhsv(256, 85%, 46%)
CMYKcmyk(62.7%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.87, 39.51, -51.72)
CIE-LCHlch(16.87, 65.09, 307.37°)
OKLaboklab(30.14% 0.0378 -0.1491)
OKLCHoklch(30.14% 0.154 284.2)
XYZxyz(4.5240, 2.2758, 17.3369)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1276 #5C7612
analogous
#122A76 #2C1276 #5E1276
triadic
#2C1276 #762C12 #12762C
tetradic
#2C1276 #76122A #5C7612 #12765E
square
#2C1276 #76122A #5C7612 #12765E
split-complementary
#2C1276 #765E12 #2A7612
monochromatic
#0A041B #180A41 #2C1276 #401AAB #5525DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1276#FFFFFF#000000##FFFFFF
##2C12761.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1276;
/* rgb */ color: rgb(44, 18, 118);
/* oklch */ color: oklch(30.1% 0.154 284.2);
Tailwind
colors: {
  custom: {
    50: '#70559f',
    500: '#2c1276',
    950: '#000000',
  },
}
SCSS
$custom: #2c1276;
$custom-light: #70559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1276",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 255.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30138,
    "c": 0.1538,
    "h": 284.2
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#2C1276
secondary
#8EAD37
accent
#F038C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1276

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

Preview Lab → · Contrast checker → · Palette generator →

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