#3D21B3#3D21B3

#3D21B3 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.0% C 0.210 H 279.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#3D21B3
RGBrgb(61, 33, 179)
HSLhsl(252, 69%, 42%)
HSVhsv(252, 82%, 70%)
CMYKcmyk(65.9%, 81.6%, 0%, 29.8%)
CIE-LABlab(27.66, 52.48, -71.58)
CIE-LCHlch(27.66, 88.75, 306.25°)
OKLaboklab(40.01% 0.0362 -0.2066)
OKLCHoklch(40.01% 0.21 279.9)
XYZxyz(10.6024, 5.3336, 43.1099)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21B3 #97B321
analogous
#214EB3 #3D21B3 #8621B3
triadic
#3D21B3 #B33D21 #21B33D
tetradic
#3D21B3 #B3214E #97B321 #21B386
square
#3D21B3 #B3214E #97B321 #21B386
split-complementary
#3D21B3 #B38621 #4EB321
monochromatic
#1A0E4C #2B177F #3D21B3 #5637DA #826BE4

Accessibility & contrast

On white

10.16
#3D21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3D21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D21B3
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21B3#FFFFFF#000000##FFFFFF
##3D21B31.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B7
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d21b3;
/* rgb */ color: rgb(61, 33, 179);
/* oklch */ color: oklch(40.0% 0.210 279.9);
Tailwind
colors: {
  custom: {
    50: '#8362cb',
    500: '#3d21b3',
    950: '#000000',
  },
}
SCSS
$custom: #3d21b3;
$custom-light: #8362cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21b3",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 251.507,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40009,
    "c": 0.20978,
    "h": 279.9
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#3D21B3
secondary
#B7CA66
accent
#EC3CCA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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