#3D1F93#3D1F93

#3D1F93 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.174 H 285.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3D1F93
RGBrgb(61, 31, 147)
HSLhsl(256, 65%, 35%)
HSVhsv(256, 79%, 58%)
CMYKcmyk(58.5%, 78.9%, 0%, 42.4%)
CIE-LABlab(23.93, 44.05, -58.31)
CIE-LCHlch(23.93, 73.08, 307.07°)
OKLaboklab(36.4% 0.0472 -0.1679)
OKLCHoklch(36.4% 0.174 285.7)
XYZxyz(7.6793, 4.0782, 27.9806)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F93 #75931F
analogous
#1F3B93 #3D1F93 #771F93
triadic
#3D1F93 #933D1F #1F933D
tetradic
#3D1F93 #931F3B #75931F #1F9377
square
#3D1F93 #931F3B #75931F #1F9377
split-complementary
#3D1F93 #93771F #3B931F
monochromatic
#130A2E #281460 #3D1F93 #522AC6 #7552DA

Accessibility & contrast

On white

11.57
#3D1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F93
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F93#FFFFFF#000000##FFFFFF
##3D1F931.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#104158
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1f93;
/* rgb */ color: rgb(61, 31, 147);
/* oklch */ color: oklch(36.4% 0.174 285.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fb4',
    500: '#3d1f93',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f93;
$custom-light: #7d5fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f93",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 255.517,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.17446,
    "h": 285.7
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#3D1F93
secondary
#A1BE50
accent
#E840BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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