#3C21BA#3C21BA

#3C21BA is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.7% C 0.218 H 278.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#3C21BA
RGBrgb(60, 33, 186)
HSLhsl(251, 70%, 43%)
HSVhsv(251, 82%, 73%)
CMYKcmyk(67.7%, 82.3%, 0%, 27.1%)
CIE-LABlab(28.36, 54.41, -74.59)
CIE-LCHlch(28.36, 92.33, 306.11°)
OKLaboklab(40.7% 0.0325 -0.2154)
OKLCHoklch(40.7% 0.218 278.6)
XYZxyz(11.2674, 5.5926, 46.9305)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C21BA #9FBA21
analogous
#2153BA #3C21BA #8821BA
triadic
#3C21BA #BA3C21 #21BA3C
tetradic
#3C21BA #BA2153 #9FBA21 #21BA88
square
#3C21BA #BA2153 #9FBA21 #21BA88
split-complementary
#3C21BA #BA8821 #53BA21
monochromatic
#1A0F52 #2B1886 #3C21BA #583CDC #8570E6

Accessibility & contrast

On white

9.91
#3C21BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3C21BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C21BA
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C21BA#FFFFFF#000000##FFFFFF
##3C21BA1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#003DB7
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3c21ba;
/* rgb */ color: rgb(60, 33, 186);
/* oklch */ color: oklch(40.7% 0.218 278.6);
Tailwind
colors: {
  custom: {
    50: '#8462d0',
    500: '#3c21ba',
    950: '#000000',
  },
}
SCSS
$custom: #3c21ba;
$custom-light: #8462d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c21ba",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 250.588,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.21787,
    "h": 278.6
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#3C21BA
secondary
#BBCC6B
accent
#ED3BCD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0514
muted
#7D7A83

Preview Lab

Preview with #3C21BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3C21BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva