#2C1361#2C1361

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

Color values

HEX#2C1361
RGBrgb(44, 19, 97)
HSLhsl(259, 67%, 23%)
HSVhsv(259, 80%, 38%)
CMYKcmyk(54.6%, 80.4%, 0%, 62%)
CIE-LABlab(14.76, 32.63, -41.47)
CIE-LCHlch(14.76, 52.77, 308.20°)
OKLaboklab(27.98% 0.0441 -0.1191)
OKLCHoklch(27.98% 0.127 290.3)
XYZxyz(3.4286, 1.8641, 11.4861)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1361 #486113
analogous
#132161 #2C1361 #531361
triadic
#2C1361 #612C13 #13612C
tetradic
#2C1361 #611321 #486113 #136153
square
#2C1361 #611321 #486113 #136153
split-complementary
#2C1361 #615313 #216113
monochromatic
#0C051A #15092E #2C1361 #431D94 #5A27C7

Accessibility & contrast

On white

15.30
#2C1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1361
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1361#FFFFFF#000000##FFFFFF
##2C13611.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#192939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1361;
/* rgb */ color: rgb(44, 19, 97);
/* oklch */ color: oklch(28.0% 0.127 290.3);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2c1361',
    950: '#000000',
  },
}
SCSS
$custom: #2c1361;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1361",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 259.231,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2798,
    "c": 0.12704,
    "h": 290.3
  },
  "luminance": 0.01864
}

Semantic roles & 50–950 ramp

primary
#2C1361
secondary
#799937
accent
#EA3EB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1361

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

Preview Lab → · Contrast checker → · Palette generator →

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