#2C1360#2C1360

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

Color values

HEX#2C1360
RGBrgb(44, 19, 96)
HSLhsl(259, 67%, 23%)
HSVhsv(259, 80%, 38%)
CMYKcmyk(54.2%, 80.2%, 0%, 62.4%)
CIE-LABlab(14.66, 32.33, -40.97)
CIE-LCHlch(14.66, 52.19, 308.27°)
OKLaboklab(27.88% 0.0444 -0.1177)
OKLCHoklch(27.88% 0.126 290.7)
XYZxyz(3.3823, 1.8456, 11.2421)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1360 #476013
analogous
#132060 #2C1360 #531360
triadic
#2C1360 #602C13 #13602C
tetradic
#2C1360 #601320 #476013 #136053
square
#2C1360 #601320 #476013 #136053
split-complementary
#2C1360 #605313 #206013
monochromatic
#0C051A #15092D #2C1360 #431D93 #5B27C6

Accessibility & contrast

On white

15.34
#2C1360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1360
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1360#FFFFFF#000000##FFFFFF
##2C13601.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#1A2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1360;
/* rgb */ color: rgb(44, 19, 96);
/* oklch */ color: oklch(27.9% 0.126 290.7);
Tailwind
colors: {
  custom: {
    50: '#6c548e',
    500: '#2c1360',
    950: '#000000',
  },
}
SCSS
$custom: #2c1360;
$custom-light: #6c548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1360",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 259.481,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27877,
    "c": 0.12577,
    "h": 290.7
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#2C1360
secondary
#789837
accent
#EA3EB2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1360

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

Preview Lab → · Contrast checker → · Palette generator →

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