#2C1354#2C1354

#2C1354 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.110 H 295.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1354
RGBrgb(44, 19, 84)
HSLhsl(263, 63%, 20%)
HSVhsv(263, 77%, 33%)
CMYKcmyk(47.6%, 77.4%, 0%, 67.1%)
CIE-LABlab(13.48, 28.66, -34.82)
CIE-LCHlch(13.48, 45.10, 309.45°)
OKLaboklab(26.69% 0.0475 -0.0996)
OKLCHoklch(26.69% 0.11 295.5)
XYZxyz(2.8714, 1.6412, 8.5513)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1354 #3B5413
analogous
#131A54 #2C1354 #4C1354
triadic
#2C1354 #542C13 #13542C
tetradic
#2C1354 #54131A #3B5413 #13544C
square
#2C1354 #54131A #3B5413 #13544C
split-complementary
#2C1354 #544C13 #1A5413
monochromatic
#0D0619 #120822 #2C1354 #461E86 #602AB8

Accessibility & contrast

On white

15.81
#2C1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1354
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1354#FFFFFF#000000##FFFFFF
##2C13541.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#212332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1354;
/* rgb */ color: rgb(44, 19, 84);
/* oklch */ color: oklch(26.7% 0.110 295.5);
Tailwind
colors: {
  custom: {
    50: '#6a5385',
    500: '#2c1354',
    950: '#000000',
  },
}
SCSS
$custom: #2c1354;
$custom-light: #6a5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1354",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 263.077,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26685,
    "c": 0.1104,
    "h": 295.5
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#2C1354
secondary
#6B8C36
accent
#E642A7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1354

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

Preview Lab → · Contrast checker → · Palette generator →

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