#3D1F89#3D1F89

#3D1F89 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.163 H 288.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3D1F89
RGBrgb(61, 31, 137)
HSLhsl(257, 63%, 33%)
HSVhsv(257, 77%, 54%)
CMYKcmyk(55.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.92, 41.09, -53.75)
CIE-LCHlch(22.92, 67.66, 307.40°)
OKLaboklab(35.39% 0.0501 -0.1546)
OKLCHoklch(35.39% 0.163 288)
XYZxyz(6.9285, 3.7779, 24.0262)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F89 #6B891F
analogous
#1F3689 #3D1F89 #721F89
triadic
#3D1F89 #893D1F #1F893D
tetradic
#3D1F89 #891F36 #6B891F #1F8972
square
#3D1F89 #891F36 #6B891F #1F8972
split-complementary
#3D1F89 #89721F #36891F
monochromatic
#110825 #271457 #3D1F89 #532ABB #734CD6

Accessibility & contrast

On white

11.96
#3D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F89
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F89#FFFFFF#000000##FFFFFF
##3D1F891.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#1E3D53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d1f89;
/* rgb */ color: rgb(61, 31, 137);
/* oklch */ color: oklch(35.4% 0.163 288.0);
Tailwind
colors: {
  custom: {
    50: '#7c5eac',
    500: '#3d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f89;
$custom-light: #7c5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f89",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 256.981,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35394,
    "c": 0.16252,
    "h": 288
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#3D1F89
secondary
#9AB94B
accent
#E642B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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