#3D1F83#3D1F83

#3D1F83 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.155 H 289.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3D1F83
RGBrgb(61, 31, 131)
HSLhsl(258, 62%, 32%)
HSVhsv(258, 76%, 51%)
CMYKcmyk(53.4%, 76.3%, 0%, 48.6%)
CIE-LABlab(22.34, 39.32, -50.94)
CIE-LCHlch(22.34, 64.35, 307.66°)
OKLaboklab(34.81% 0.0517 -0.1464)
OKLCHoklch(34.81% 0.155 289.5)
XYZxyz(6.5100, 3.6105, 21.8222)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F83 #65831F
analogous
#1F3383 #3D1F83 #6F1F83
triadic
#3D1F83 #833D1F #1F833D
tetradic
#3D1F83 #831F33 #65831F #1F836F
square
#3D1F83 #831F33 #65831F #1F836F
split-complementary
#3D1F83 #836F1F #33831F
monochromatic
#0F0820 #261352 #3D1F83 #542BB4 #7249D4

Accessibility & contrast

On white

12.19
#3D1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F83
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F83#FFFFFF#000000##FFFFFF
##3D1F831.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#233A4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1f83;
/* rgb */ color: rgb(61, 31, 131);
/* oklch */ color: oklch(34.8% 0.155 289.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ea8',
    500: '#3d1f83',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f83;
$custom-light: #7b5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f83",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 258,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.15525,
    "h": 289.5
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#3D1F83
secondary
#95B648
accent
#E543B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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