#3D157F#3D157F

#3D157F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.161 H 292.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3D157F
RGBrgb(61, 21, 127)
HSLhsl(263, 72%, 29%)
HSVhsv(263, 83%, 50%)
CMYKcmyk(52%, 83.5%, 0%, 50.2%)
CIE-LABlab(20.28, 42.93, -51.79)
CIE-LCHlch(20.28, 67.27, 309.66°)
OKLaboklab(33.25% 0.0609 -0.1488)
OKLCHoklch(33.25% 0.161 292.3)
XYZxyz(6.0223, 3.0605, 20.3480)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D157F #577F15
analogous
#15227F #3D157F #72157F
triadic
#3D157F #7F3D15 #157F3D
tetradic
#3D157F #7F1522 #577F15 #157F72
square
#3D157F #7F1522 #577F15 #157F72
split-complementary
#3D157F #7F7215 #227F15
monochromatic
#0D041A #240C4A #3D157F #561EB4 #7231DD

Accessibility & contrast

On white

13.03
#3D157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D157F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D157F#FFFFFF#000000##FFFFFF
##3D157F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#27344B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d157f;
/* rgb */ color: rgb(61, 21, 127);
/* oklch */ color: oklch(33.2% 0.161 292.3);
Tailwind
colors: {
  custom: {
    50: '#7b59a5',
    500: '#3d157f',
    950: '#000000',
  },
}
SCSS
$custom: #3d157f;
$custom-light: #7b59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d157f",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 262.642,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33249,
    "c": 0.16074,
    "h": 292.3
  },
  "luminance": 0.03061
}

Semantic roles & 50–950 ramp

primary
#3D157F
secondary
#87B43C
accent
#EE39AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D157F

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

Preview Lab → · Contrast checker → · Palette generator →

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