#3D1F90#3D1F90

#3D1F90 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.171 H 286.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#3D1F90
RGBrgb(61, 31, 144)
HSLhsl(256, 65%, 34%)
HSVhsv(256, 78%, 56%)
CMYKcmyk(57.6%, 78.5%, 0%, 43.5%)
CIE-LABlab(23.62, 43.16, -56.96)
CIE-LCHlch(23.62, 71.47, 307.16°)
OKLaboklab(36.1% 0.0481 -0.164)
OKLCHoklch(36.1% 0.171 286.4)
XYZxyz(7.4470, 3.9853, 26.7570)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F90 #72901F
analogous
#1F3A90 #3D1F90 #761F90
triadic
#3D1F90 #903D1F #1F903D
tetradic
#3D1F90 #901F3A #72901F #1F9076
square
#3D1F90 #901F3A #72901F #1F9076
split-complementary
#3D1F90 #90761F #3A901F
monochromatic
#12092B #28145E #3D1F90 #522AC2 #7550D9

Accessibility & contrast

On white

11.68
#3D1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F90
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F90#FFFFFF#000000##FFFFFF
##3D1F901.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00358E
Tritanopia (blue-blind)
#153F57
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1f90;
/* rgb */ color: rgb(61, 31, 144);
/* oklch */ color: oklch(36.1% 0.171 286.4);
Tailwind
colors: {
  custom: {
    50: '#7d5fb2',
    500: '#3d1f90',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f90;
$custom-light: #7d5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f90",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 255.929,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36096,
    "c": 0.1709,
    "h": 286.4
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#3D1F90
secondary
#9FBC4E
accent
#E840BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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