#3D21A2#3D21A2

#3D21A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.190 H 282.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3D21A2
RGBrgb(61, 33, 162)
HSLhsl(253, 66%, 38%)
HSVhsv(253, 80%, 64%)
CMYKcmyk(62.3%, 79.6%, 0%, 36.5%)
CIE-LABlab(25.83, 47.51, -64.37)
CIE-LCHlch(25.83, 80.01, 306.43°)
OKLaboklab(38.19% 0.0414 -0.1857)
OKLCHoklch(38.19% 0.19 282.6)
XYZxyz(8.9879, 4.6878, 34.6066)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21A2 #86A221
analogous
#2145A2 #3D21A2 #7D21A2
triadic
#3D21A2 #A23D21 #21A23D
tetradic
#3D21A2 #A22145 #86A221 #21A27D
square
#3D21A2 #A22145 #86A221 #21A27D
split-complementary
#3D21A2 #A27D21 #45A221
monochromatic
#170C3C #2A176F #3D21A2 #512CD4 #7B5FDE

Accessibility & contrast

On white

10.84
#3D21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3D21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D21A2
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21A2#FFFFFF#000000##FFFFFF
##3D21A21.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d21a2;
/* rgb */ color: rgb(61, 33, 162);
/* oklch */ color: oklch(38.2% 0.190 282.6);
Tailwind
colors: {
  custom: {
    50: '#8061bf',
    500: '#3d21a2',
    950: '#000000',
  },
}
SCSS
$custom: #3d21a2;
$custom-light: #8061bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21a2",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 253.023,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38191,
    "c": 0.19023,
    "h": 282.6
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#3D21A2
secondary
#ADC35C
accent
#E93FC4
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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