#3D21C2#3D21C2

#3D21C2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.227 H 278.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#3D21C2
RGBrgb(61, 33, 194)
HSLhsl(250, 71%, 45%)
HSVhsv(250, 83%, 76%)
CMYKcmyk(68.6%, 83%, 0%, 23.9%)
CIE-LABlab(29.35, 56.78, -77.68)
CIE-LCHlch(29.35, 96.22, 306.16°)
OKLaboklab(41.66% 0.0315 -0.2244)
OKLCHoklch(41.66% 0.227 278)
XYZxyz(12.2028, 5.9738, 51.5385)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21C2 #A6C221
analogous
#2155C2 #3D21C2 #8E21C2
triadic
#3D21C2 #C23D21 #21C23D
tetradic
#3D21C2 #C22155 #A6C221 #21C28E
square
#3D21C2 #C22155 #A6C221 #21C28E
split-complementary
#3D21C2 #C28E21 #55C221
monochromatic
#1C0F59 #2D188E #3D21C2 #5D41DF #8A76E8

Accessibility & contrast

On white

9.57
#3D21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3D21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D21C2
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21C2#FFFFFF#000000##FFFFFF
##3D21C21.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003EBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3d21c2;
/* rgb */ color: rgb(61, 33, 194);
/* oklch */ color: oklch(41.7% 0.227 278.0);
Tailwind
colors: {
  custom: {
    50: '#8663d6',
    500: '#3d21c2',
    950: '#000000',
  },
}
SCSS
$custom: #3d21c2;
$custom-light: #8663d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21c2",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 250.435,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41659,
    "c": 0.22659,
    "h": 278
  },
  "luminance": 0.05975
}

Semantic roles & 50–950 ramp

primary
#3D21C2
secondary
#BECF70
accent
#EE3ACE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3D21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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