#2C1764#2C1764

#2C1764 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.126 H 288.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2C1764
RGBrgb(44, 23, 100)
HSLhsl(256, 63%, 24%)
HSVhsv(256, 77%, 39%)
CMYKcmyk(56%, 77%, 0%, 60.8%)
CIE-LABlab(15.84, 31.36, -41.68)
CIE-LCHlch(15.84, 52.16, 306.96°)
OKLaboklab(28.84% 0.0396 -0.1198)
OKLCHoklch(28.84% 0.126 288.3)
XYZxyz(3.6447, 2.0682, 12.2613)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1764 #4F6417
analogous
#172964 #2C1764 #531764
triadic
#2C1764 #642C17 #17642C
tetradic
#2C1764 #641729 #4F6417 #176453
square
#2C1764 #641729 #4F6417 #176453
split-complementary
#2C1764 #645317 #296417
monochromatic
#0B0619 #160C32 #2C1764 #422296 #582EC8

Accessibility & contrast

On white

14.86
#2C1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C1764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1764
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1764#FFFFFF#000000##FFFFFF
##2C17641.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#162C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1764;
/* rgb */ color: rgb(44, 23, 100);
/* oklch */ color: oklch(28.8% 0.126 288.3);
Tailwind
colors: {
  custom: {
    50: '#6c5691',
    500: '#2c1764',
    950: '#000000',
  },
}
SCSS
$custom: #2c1764;
$custom-light: #6c5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1764",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 256.364,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28837,
    "c": 0.12618,
    "h": 288.3
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#2C1764
secondary
#819A3C
accent
#E642B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1764

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

Preview Lab → · Contrast checker → · Palette generator →

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