#2C215E#2C215E

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

Color values

HEX#2C215E
RGBrgb(44, 33, 94)
HSLhsl(251, 48%, 25%)
HSVhsv(251, 65%, 37%)
CMYKcmyk(53.2%, 64.9%, 0%, 63.1%)
CIE-LABlab(17.60, 23.10, -34.83)
CIE-LCHlch(17.60, 41.80, 303.56°)
OKLaboklab(29.94% 0.0297 -0.0997)
OKLCHoklch(29.94% 0.104 286.6)
XYZxyz(3.6023, 2.4312, 10.8670)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C215E #535E21
analogous
#21345E #2C215E #4B215E
triadic
#2C215E #5E2C21 #215E2C
tetradic
#2C215E #5E2134 #535E21 #215E4B
square
#2C215E #5E2134 #535E21 #215E4B
split-complementary
#2C215E #5E4B21 #345E21
monochromatic
#0B0817 #171131 #2C215E #41318B #5641B9

Accessibility & contrast

On white

14.13
#2C215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C215E
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C215E#FFFFFF#000000##FFFFFF
##2C215E1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#1A2F3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c215e;
/* rgb */ color: rgb(44, 33, 94);
/* oklch */ color: oklch(29.9% 0.104 286.6);
Tailwind
colors: {
  custom: {
    50: '#6a5d8c',
    500: '#2c215e',
    950: '#000000',
  },
}
SCSS
$custom: #2c215e;
$custom-light: #6a5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c215e",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 250.82,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29938,
    "c": 0.10402,
    "h": 286.6
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#2C215E
secondary
#859249
accent
#D850BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C215E

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

Preview Lab → · Contrast checker → · Palette generator →

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