#3D1F9B#3D1F9B

#3D1F9B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.184 H 284.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3D1F9B
RGBrgb(61, 31, 155)
HSLhsl(255, 67%, 36%)
HSVhsv(255, 80%, 61%)
CMYKcmyk(60.6%, 80%, 0%, 39.2%)
CIE-LABlab(24.76, 46.40, -61.86)
CIE-LCHlch(24.76, 77.33, 306.87°)
OKLaboklab(37.23% 0.0448 -0.1783)
OKLCHoklch(37.23% 0.184 284.1)
XYZxyz(8.3290, 4.3381, 31.4024)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F9B #7D9B1F
analogous
#1F3F9B #3D1F9B #7B1F9B
triadic
#3D1F9B #9B3D1F #1F9B3D
tetradic
#3D1F9B #9B1F3F #7D9B1F #1F9B7B
square
#3D1F9B #9B1F3F #7D9B1F #1F9B7B
split-complementary
#3D1F9B #9B7B1F #3F9B1F
monochromatic
#150B35 #291568 #3D1F9B #5129CE #7857DD

Accessibility & contrast

On white

11.24
#3D1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F9B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F9B#FFFFFF#000000##FFFFFF
##3D1F9B1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d1f9b;
/* rgb */ color: rgb(61, 31, 155);
/* oklch */ color: oklch(37.2% 0.184 284.1);
Tailwind
colors: {
  custom: {
    50: '#7f5fba',
    500: '#3d1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f9b;
$custom-light: #7f5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f9b",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 254.516,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37229,
    "c": 0.18386,
    "h": 284.1
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#3D1F9B
secondary
#A7C155
accent
#EA3EC0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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