#3D21A4#3D21A4

#3D21A4 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.193 H 282.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#3D21A4
RGBrgb(61, 33, 164)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 80%, 64%)
CMYKcmyk(62.8%, 79.9%, 0%, 35.7%)
CIE-LABlab(26.04, 48.10, -65.24)
CIE-LCHlch(26.04, 81.05, 306.40°)
OKLaboklab(38.4% 0.0408 -0.1882)
OKLCHoklch(38.4% 0.193 282.2)
XYZxyz(9.1671, 4.7595, 35.5504)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21A4 #88A421
analogous
#2147A4 #3D21A4 #7E21A4
triadic
#3D21A4 #A43D21 #21A43D
tetradic
#3D21A4 #A42147 #88A421 #21A47E
square
#3D21A4 #A42147 #88A421 #21A47E
split-complementary
#3D21A4 #A47E21 #47A421
monochromatic
#170C3E #2A1771 #3D21A4 #512DD5 #7B60DF

Accessibility & contrast

On white

10.76
#3D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3D21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D21A4
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21A4#FFFFFF#000000##FFFFFF
##3D21A41.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d21a4;
/* rgb */ color: rgb(61, 33, 164);
/* oklch */ color: oklch(38.4% 0.193 282.2);
Tailwind
colors: {
  custom: {
    50: '#8061c0',
    500: '#3d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #3d21a4;
$custom-light: #8061c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21a4",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 252.824,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.19256,
    "h": 282.2
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#3D21A4
secondary
#AEC45D
accent
#E93EC5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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