#2C1362#2C1362

#2C1362 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.128 H 289.9°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2C1362
RGBrgb(44, 19, 98)
HSLhsl(259, 68%, 23%)
HSVhsv(259, 81%, 38%)
CMYKcmyk(55.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.86, 32.94, -41.97)
CIE-LCHlch(14.86, 53.35, 308.13°)
OKLaboklab(28.08% 0.0438 -0.1206)
OKLCHoklch(28.08% 0.128 289.9)
XYZxyz(3.4755, 1.8829, 11.7332)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1362 #496213
analogous
#132262 #2C1362 #531362
triadic
#2C1362 #622C13 #13622C
tetradic
#2C1362 #621322 #496213 #136253
square
#2C1362 #621322 #496213 #136253
split-complementary
#2C1362 #625313 #226213
monochromatic
#0C051A #15092F #2C1362 #431D95 #5A27C9

Accessibility & contrast

On white

15.25
#2C1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1362
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1362#FFFFFF#000000##FFFFFF
##2C13621.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#18293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1362;
/* rgb */ color: rgb(44, 19, 98);
/* oklch */ color: oklch(28.1% 0.128 289.9);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2c1362',
    950: '#000000',
  },
}
SCSS
$custom: #2c1362;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1362",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 258.987,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28084,
    "c": 0.12829,
    "h": 289.9
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#2C1362
secondary
#7B9A37
accent
#EA3DB4
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1362

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

Preview Lab → · Contrast checker → · Palette generator →

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