#2C1368#2C1368

#2C1368 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.136 H 288.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1368
RGBrgb(44, 19, 104)
HSLhsl(258, 69%, 24%)
HSVhsv(258, 82%, 41%)
CMYKcmyk(57.7%, 81.7%, 0%, 59.2%)
CIE-LABlab(15.49, 34.78, -44.90)
CIE-LCHlch(15.49, 56.79, 307.76°)
OKLaboklab(28.72% 0.0419 -0.1292)
OKLCHoklch(28.72% 0.136 288)
XYZxyz(3.7695, 2.0005, 13.2815)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1368 #4F6813
analogous
#132568 #2C1368 #571368
triadic
#2C1368 #682C13 #13682C
tetradic
#2C1368 #681325 #4F6813 #136857
square
#2C1368 #681325 #4F6813 #136857
split-complementary
#2C1368 #685713 #256813
monochromatic
#0B051A #160A34 #2C1368 #421C9C #5826CF

Accessibility & contrast

On white

15.00
#2C1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C1368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1368
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1368#FFFFFF#000000##FFFFFF
##2C13681.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#132B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1368;
/* rgb */ color: rgb(44, 19, 104);
/* oklch */ color: oklch(28.7% 0.136 288.0);
Tailwind
colors: {
  custom: {
    50: '#6d5494',
    500: '#2c1368',
    950: '#000000',
  },
}
SCSS
$custom: #2c1368;
$custom-light: #6d5494;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1368",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 257.647,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28715,
    "c": 0.1358,
    "h": 288
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#2C1368
secondary
#819F37
accent
#EC3CB8
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1368

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

Preview Lab → · Contrast checker → · Palette generator →

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