#3D21AE#3D21AE

#3D21AE is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.5% C 0.204 H 280.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3D21AE
RGBrgb(61, 33, 174)
HSLhsl(252, 68%, 41%)
HSVhsv(252, 81%, 68%)
CMYKcmyk(64.9%, 81%, 0%, 31.8%)
CIE-LABlab(27.12, 51.03, -69.49)
CIE-LCHlch(27.12, 86.21, 306.29°)
OKLaboklab(39.47% 0.0377 -0.2006)
OKLCHoklch(39.47% 0.204 280.7)
XYZxyz(10.1059, 5.1350, 40.4948)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21AE #92AE21
analogous
#214BAE #3D21AE #8321AE
triadic
#3D21AE #AE3D21 #21AE3D
tetradic
#3D21AE #AE214B #92AE21 #21AE83
square
#3D21AE #AE214B #92AE21 #21AE83
split-complementary
#3D21AE #AE8321 #4BAE21
monochromatic
#190D47 #2B177B #3D21AE #5434D8 #8067E2

Accessibility & contrast

On white

10.36
#3D21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3D21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D21AE
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21AE#FFFFFF#000000##FFFFFF
##3D21AE1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d21ae;
/* rgb */ color: rgb(61, 33, 174);
/* oklch */ color: oklch(39.5% 0.204 280.7);
Tailwind
colors: {
  custom: {
    50: '#8262c8',
    500: '#3d21ae',
    950: '#000000',
  },
}
SCSS
$custom: #3d21ae;
$custom-light: #8262c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21ae",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 251.915,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39468,
    "c": 0.20409,
    "h": 280.7
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#3D21AE
secondary
#B4C863
accent
#EB3DC8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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