#3D1EC2#3D1EC2

#3D1EC2 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.4% C 0.229 H 278.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#3D1EC2
RGBrgb(61, 30, 194)
HSLhsl(251, 73%, 44%)
HSVhsv(251, 85%, 76%)
CMYKcmyk(68.6%, 84.5%, 0%, 23.9%)
CIE-LABlab(28.94, 57.98, -78.36)
CIE-LCHlch(28.94, 97.48, 306.50°)
OKLaboklab(41.38% 0.0326 -0.2263)
OKLCHoklch(41.38% 0.229 278.2)
XYZxyz(12.1232, 5.8146, 51.5119)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1EC2 #A3C21E
analogous
#1E51C2 #3D1EC2 #8F1EC2
triadic
#3D1EC2 #C23D1E #1EC23D
tetradic
#3D1EC2 #C21E51 #A3C21E #1EC28F
square
#3D1EC2 #C21E51 #A3C21E #1EC28F
split-complementary
#3D1EC2 #C28F1E #51C21E
monochromatic
#1C0E58 #2C168D #3D1EC2 #5B3CE1 #8871E9

Accessibility & contrast

On white

9.71
#3D1EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3D1EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1EC2
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1EC2#FFFFFF#000000##FFFFFF
##3D1EC21.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003DBF
Tritanopia (blue-blind)
#005474
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d1ec2;
/* rgb */ color: rgb(61, 30, 194);
/* oklch */ color: oklch(41.4% 0.229 278.2);
Tailwind
colors: {
  custom: {
    50: '#8762d6',
    500: '#3d1ec2',
    950: '#000000',
  },
}
SCSS
$custom: #3d1ec2;
$custom-light: #8762d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1ec2",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 194
  },
  "hsl": {
    "h": 251.341,
    "s": 73.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.22862,
    "h": 278.2
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#3D1EC2
secondary
#BDD06C
accent
#F038CD
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0515
muted
#7E7A83

Preview Lab

Preview with #3D1EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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