#2C1364#2C1364

#2C1364 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.131 H 289.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2C1364
RGBrgb(44, 19, 100)
HSLhsl(259, 68%, 23%)
HSVhsv(259, 81%, 39%)
CMYKcmyk(56%, 81%, 0%, 60.8%)
CIE-LABlab(15.07, 33.55, -42.95)
CIE-LCHlch(15.07, 54.50, 308.00°)
OKLaboklab(28.29% 0.0432 -0.1235)
OKLCHoklch(28.29% 0.131 289.3)
XYZxyz(3.5712, 1.9212, 12.2368)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1364 #4B6413
analogous
#132264 #2C1364 #541364
triadic
#2C1364 #642C13 #13642C
tetradic
#2C1364 #641322 #4B6413 #136454
square
#2C1364 #641322 #4B6413 #136454
split-complementary
#2C1364 #645413 #226413
monochromatic
#0B051A #150931 #2C1364 #431D97 #5927CB

Accessibility & contrast

On white

15.17
#2C1364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1364
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1364#FFFFFF#000000##FFFFFF
##2C13641.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#172A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1364;
/* rgb */ color: rgb(44, 19, 100);
/* oklch */ color: oklch(28.3% 0.131 289.3);
Tailwind
colors: {
  custom: {
    50: '#6c5491',
    500: '#2c1364',
    950: '#000000',
  },
}
SCSS
$custom: #2c1364;
$custom-light: #6c5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1364",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 258.519,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28293,
    "c": 0.13081,
    "h": 289.3
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#2C1364
secondary
#7D9C37
accent
#EB3DB5
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1364

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

Preview Lab → · Contrast checker → · Palette generator →

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