#3D1B94#3D1B94

#3D1B94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.179 H 286.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3D1B94
RGBrgb(61, 27, 148)
HSLhsl(257, 69%, 34%)
HSVhsv(257, 82%, 58%)
CMYKcmyk(58.8%, 81.8%, 0%, 42%)
CIE-LABlab(23.38, 46.22, -59.83)
CIE-LCHlch(23.38, 75.60, 307.69°)
OKLaboklab(36.05% 0.0495 -0.1723)
OKLCHoklch(36.05% 0.179 286)
XYZxyz(7.6601, 3.9136, 28.3630)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B94 #72941B
analogous
#1B3594 #3D1B94 #7A1B94
triadic
#3D1B94 #943D1B #1B943D
tetradic
#3D1B94 #941B35 #72941B #1B947A
square
#3D1B94 #941B35 #72941B #1B947A
split-complementary
#3D1B94 #947A1B #35941B
monochromatic
#12082C #281260 #3D1B94 #5224C8 #754BDE

Accessibility & contrast

On white

11.78
#3D1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B94
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B94#FFFFFF#000000##FFFFFF
##3D1B941.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#0F3F58
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1b94;
/* rgb */ color: rgb(61, 27, 148);
/* oklch */ color: oklch(36.1% 0.179 286.0);
Tailwind
colors: {
  custom: {
    50: '#7e5db5',
    500: '#3d1b94',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b94;
$custom-light: #7e5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b94",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 256.86,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.17931,
    "h": 286
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#3D1B94
secondary
#9FC04B
accent
#EC3CBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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