#3D1F94#3D1F94

#3D1F94 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.176 H 285.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3D1F94
RGBrgb(61, 31, 148)
HSLhsl(255, 65%, 35%)
HSVhsv(255, 79%, 58%)
CMYKcmyk(58.8%, 79.1%, 0%, 42%)
CIE-LABlab(24.03, 44.34, -58.76)
CIE-LCHlch(24.03, 73.62, 307.04°)
OKLaboklab(36.5% 0.0469 -0.1693)
OKLCHoklch(36.5% 0.176 285.5)
XYZxyz(7.7581, 4.1097, 28.3957)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F94 #76941F
analogous
#1F3B94 #3D1F94 #781F94
triadic
#3D1F94 #943D1F #1F943D
tetradic
#3D1F94 #941F3B #76941F #1F9478
square
#3D1F94 #941F3B #76941F #1F9478
split-complementary
#3D1F94 #94781F #3B941F
monochromatic
#130A2F #281461 #3D1F94 #522AC7 #7553DB

Accessibility & contrast

On white

11.53
#3D1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1F94
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F94#FFFFFF#000000##FFFFFF
##3D1F941.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#0F4159
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1f94;
/* rgb */ color: rgb(61, 31, 148);
/* oklch */ color: oklch(36.5% 0.176 285.5);
Tailwind
colors: {
  custom: {
    50: '#7e5fb5',
    500: '#3d1f94',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f94;
$custom-light: #7e5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f94",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 255.385,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36504,
    "c": 0.17564,
    "h": 285.5
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#3D1F94
secondary
#A2BE51
accent
#E83FBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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