#3D1A82#3D1A82

#3D1A82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.159 H 290.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3D1A82
RGBrgb(61, 26, 130)
HSLhsl(260, 67%, 31%)
HSVhsv(260, 80%, 51%)
CMYKcmyk(53.1%, 80%, 0%, 49%)
CIE-LABlab(21.37, 41.53, -51.91)
CIE-LCHlch(21.37, 66.47, 308.66°)
OKLaboklab(34.09% 0.0562 -0.1492)
OKLCHoklch(34.09% 0.159 290.6)
XYZxyz(6.3220, 3.3423, 21.4268)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A82 #5F821A
analogous
#1A2B82 #3D1A82 #711A82
triadic
#3D1A82 #823D1A #1A823D
tetradic
#3D1A82 #821A2B #5F821A #1A8271
square
#3D1A82 #821A2B #5F821A #1A8271
split-complementary
#3D1A82 #82711A #2B821A
monochromatic
#0D061C #25104F #3D1A82 #5524B5 #723ED8

Accessibility & contrast

On white

12.59
#3D1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A82
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A82#FFFFFF#000000##FFFFFF
##3D1A821.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#24384E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1a82;
/* rgb */ color: rgb(61, 26, 130);
/* oklch */ color: oklch(34.1% 0.159 290.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ba7',
    500: '#3d1a82',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a82;
$custom-light: #7b5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a82",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 260.192,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34093,
    "c": 0.15939,
    "h": 290.6
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#3D1A82
secondary
#8FB642
accent
#EA3EB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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