#2C1076#2C1076

#2C1076 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.155 H 284.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2C1076
RGBrgb(44, 16, 118)
HSLhsl(256, 76%, 26%)
HSVhsv(256, 86%, 46%)
CMYKcmyk(62.7%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.57, 40.39, -52.22)
CIE-LCHlch(16.57, 66.02, 307.72°)
OKLaboklab(29.93% 0.0389 -0.1505)
OKLCHoklch(29.93% 0.155 284.5)
XYZxyz(4.4930, 2.2138, 17.3266)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1076 #5A7610
analogous
#102776 #2C1076 #5F1076
triadic
#2C1076 #762C10 #10762C
tetradic
#2C1076 #761027 #5A7610 #10765F
square
#2C1076 #761027 #5A7610 #10765F
split-complementary
#2C1076 #765F10 #277610
monochromatic
#0A041B #180940 #2C1076 #4017AC #5520E1

Accessibility & contrast

On white

14.56
#2C1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1076
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1076#FFFFFF#000000##FFFFFF
##2C10761.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1076;
/* rgb */ color: rgb(44, 16, 118);
/* oklch */ color: oklch(29.9% 0.155 284.5);
Tailwind
colors: {
  custom: {
    50: '#70549f',
    500: '#2c1076',
    950: '#000000',
  },
}
SCSS
$custom: #2c1076;
$custom-light: #70549f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1076",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 256.471,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29931,
    "c": 0.15546,
    "h": 284.5
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2C1076
secondary
#8CAD35
accent
#F335BF
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1076

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

Preview Lab → · Contrast checker → · Palette generator →

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