#3D1D88#3D1D88

#3D1D88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.163 H 288.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3D1D88
RGBrgb(61, 29, 136)
HSLhsl(258, 65%, 32%)
HSVhsv(258, 79%, 53%)
CMYKcmyk(55.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(22.47, 41.81, -53.86)
CIE-LCHlch(22.47, 68.18, 307.82°)
OKLaboklab(35.05% 0.052 -0.1549)
OKLCHoklch(35.05% 0.163 288.5)
XYZxyz(6.8065, 3.6481, 23.6333)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D88 #68881D
analogous
#1D3388 #3D1D88 #731D88
triadic
#3D1D88 #883D1D #1D883D
tetradic
#3D1D88 #881D33 #68881D #1D8873
square
#3D1D88 #881D33 #68881D #1D8873
split-complementary
#3D1D88 #88731D #33881D
monochromatic
#100723 #261256 #3D1D88 #5428BA #7348D8

Accessibility & contrast

On white

12.14
#3D1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D88
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D88#FFFFFF#000000##FFFFFF
##3D1D881.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#1F3B52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1d88;
/* rgb */ color: rgb(61, 29, 136);
/* oklch */ color: oklch(35.0% 0.163 288.5);
Tailwind
colors: {
  custom: {
    50: '#7c5dac',
    500: '#3d1d88',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d88;
$custom-light: #7c5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d88",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 257.944,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.16341,
    "h": 288.5
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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