#2C1168#2C1168

#2C1168 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.138 H 288.4°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2C1168
RGBrgb(44, 17, 104)
HSLhsl(259, 72%, 24%)
HSVhsv(259, 84%, 41%)
CMYKcmyk(57.7%, 83.7%, 0%, 59.2%)
CIE-LABlab(15.15, 35.77, -45.46)
CIE-LCHlch(15.15, 57.85, 308.20°)
OKLaboklab(28.48% 0.0434 -0.1308)
OKLCHoklch(28.48% 0.138 288.4)
XYZxyz(3.7371, 1.9357, 13.2707)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1168 #4D6811
analogous
#112168 #2C1168 #571168
triadic
#2C1168 #682C11 #11682C
tetradic
#2C1168 #681121 #4D6811 #116857
square
#2C1168 #681121 #4D6811 #116857
split-complementary
#2C1168 #685711 #216811
monochromatic
#0B041A #160833 #2C1168 #421A9D #5922D1

Accessibility & contrast

On white

15.14
#2C1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1168
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1168#FFFFFF#000000##FFFFFF
##2C11681.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#132B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1168;
/* rgb */ color: rgb(44, 17, 104);
/* oklch */ color: oklch(28.5% 0.138 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5394',
    500: '#2c1168',
    950: '#000000',
  },
}
SCSS
$custom: #2c1168;
$custom-light: #6d5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1168",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 258.621,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28476,
    "c": 0.13782,
    "h": 288.4
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#2C1168
secondary
#7FA035
accent
#EF39B6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1168

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

Preview Lab → · Contrast checker → · Palette generator →

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