#2C1161#2C1161

#2C1161 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.129 H 290.7°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2C1161
RGBrgb(44, 17, 97)
HSLhsl(260, 70%, 22%)
HSVhsv(260, 82%, 38%)
CMYKcmyk(54.6%, 82.5%, 0%, 62%)
CIE-LABlab(14.40, 33.67, -42.06)
CIE-LCHlch(14.40, 53.88, 308.67°)
OKLaboklab(27.73% 0.0458 -0.1209)
OKLCHoklch(27.73% 0.129 290.7)
XYZxyz(3.3962, 1.7993, 11.4753)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1161 #466111
analogous
#111E61 #2C1161 #541161
triadic
#2C1161 #612C11 #11612C
tetradic
#2C1161 #61111E #466111 #116154
square
#2C1161 #61111E #466111 #116154
split-complementary
#2C1161 #615411 #1E6111
monochromatic
#0C051A #14082D #2C1161 #441A95 #5B23C9

Accessibility & contrast

On white

15.44
#2C1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1161
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1161#FFFFFF#000000##FFFFFF
##2C11611.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#192839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1161;
/* rgb */ color: rgb(44, 17, 97);
/* oklch */ color: oklch(27.7% 0.129 290.7);
Tailwind
colors: {
  custom: {
    50: '#6c538f',
    500: '#2c1161',
    950: '#000000',
  },
}
SCSS
$custom: #2c1161;
$custom-light: #6c538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1161",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 260.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27728,
    "c": 0.12925,
    "h": 290.7
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#2C1161
secondary
#779934
accent
#ED3BB1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C1161

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

Preview Lab → · Contrast checker → · Palette generator →

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