#2C215D#2C215D

#2C215D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.103 H 286.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2C215D
RGBrgb(44, 33, 93)
HSLhsl(251, 48%, 25%)
HSVhsv(251, 65%, 36%)
CMYKcmyk(52.7%, 64.5%, 0%, 63.5%)
CIE-LABlab(17.52, 22.77, -34.30)
CIE-LCHlch(17.52, 41.17, 303.57°)
OKLaboklab(29.85% 0.0298 -0.0981)
OKLCHoklch(29.85% 0.103 286.9)
XYZxyz(3.5578, 2.4133, 10.6322)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C215D #525D21
analogous
#21345D #2C215D #4A215D
triadic
#2C215D #5D2C21 #215D2C
tetradic
#2C215D #5D2134 #525D21 #215D4A
square
#2C215D #5D2134 #525D21 #215D4A
split-complementary
#2C215D #5D4A21 #345D21
monochromatic
#0B0817 #171130 #2C215D #41318A #5741B7

Accessibility & contrast

On white

14.16
#2C215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C215D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C215D#FFFFFF#000000##FFFFFF
##2C215D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#1B2F3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c215d;
/* rgb */ color: rgb(44, 33, 93);
/* oklch */ color: oklch(29.9% 0.103 286.9);
Tailwind
colors: {
  custom: {
    50: '#6a5c8b',
    500: '#2c215d',
    950: '#000000',
  },
}
SCSS
$custom: #2c215d;
$custom-light: #6a5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c215d",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 251,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29852,
    "c": 0.10254,
    "h": 286.9
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#2C215D
secondary
#849149
accent
#D751BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C215D

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

Preview Lab → · Contrast checker → · Palette generator →

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