#2C1164#2C1164

#2C1164 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.133 H 289.7°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2C1164
RGBrgb(44, 17, 100)
HSLhsl(260, 71%, 23%)
HSVhsv(260, 83%, 39%)
CMYKcmyk(56%, 83%, 0%, 60.8%)
CIE-LABlab(14.71, 34.57, -43.53)
CIE-LCHlch(14.71, 55.59, 308.45°)
OKLaboklab(28.05% 0.0448 -0.1252)
OKLCHoklch(28.05% 0.133 289.7)
XYZxyz(3.5387, 1.8563, 12.2260)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1164 #496411
analogous
#111F64 #2C1164 #551164
triadic
#2C1164 #642C11 #11642C
tetradic
#2C1164 #64111F #496411 #116455
square
#2C1164 #64111F #496411 #116455
split-complementary
#2C1164 #645511 #1F6411
monochromatic
#0C041A #150830 #2C1164 #431A98 #5A23CD

Accessibility & contrast

On white

15.32
#2C1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1164
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1164#FFFFFF#000000##FFFFFF
##2C11641.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#17293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1164;
/* rgb */ color: rgb(44, 17, 100);
/* oklch */ color: oklch(28.0% 0.133 289.7);
Tailwind
colors: {
  custom: {
    50: '#6d5391',
    500: '#2c1164',
    950: '#000000',
  },
}
SCSS
$custom: #2c1164;
$custom-light: #6d5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1164",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 259.518,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28046,
    "c": 0.13294,
    "h": 289.7
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#2C1164
secondary
#7B9C35
accent
#EE3AB3
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2C1164

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

Preview Lab → · Contrast checker → · Palette generator →

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