#3D1D89#3D1D89

#3D1D89 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 288.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3D1D89
RGBrgb(61, 29, 137)
HSLhsl(258, 65%, 33%)
HSVhsv(258, 79%, 54%)
CMYKcmyk(55.5%, 78.8%, 0%, 46.3%)
CIE-LABlab(22.57, 42.10, -54.33)
CIE-LCHlch(22.57, 68.73, 307.77°)
OKLaboklab(35.15% 0.0517 -0.1563)
OKLCHoklch(35.15% 0.165 288.3)
XYZxyz(6.8779, 3.6766, 24.0093)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D89 #69891D
analogous
#1D3389 #3D1D89 #731D89
triadic
#3D1D89 #893D1D #1D893D
tetradic
#3D1D89 #891D33 #69891D #1D8973
square
#3D1D89 #891D33 #69891D #1D8973
split-complementary
#3D1D89 #89731D #33891D
monochromatic
#100824 #271256 #3D1D89 #5328BC #7348D8

Accessibility & contrast

On white

12.10
#3D1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D1D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D89
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D89#FFFFFF#000000##FFFFFF
##3D1D891.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#1E3C52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1d89;
/* rgb */ color: rgb(61, 29, 137);
/* oklch */ color: oklch(35.1% 0.165 288.3);
Tailwind
colors: {
  custom: {
    50: '#7c5dac',
    500: '#3d1d89',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d89;
$custom-light: #7c5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d89",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 257.778,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35148,
    "c": 0.16459,
    "h": 288.3
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#3D1D89
secondary
#98BA47
accent
#E840B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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