#3D155D#3D155D

#3D155D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.122 H 305.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#3D155D
RGBrgb(61, 21, 93)
HSLhsl(273, 63%, 22%)
HSVhsv(273, 77%, 36%)
CMYKcmyk(34.4%, 77.4%, 0%, 63.5%)
CIE-LABlab(17.08, 33.74, -34.92)
CIE-LCHlch(17.08, 48.56, 314.01°)
OKLaboklab(30.02% 0.0708 -0.0993)
OKLCHoklch(30.02% 0.122 305.5)
XYZxyz(4.1680, 2.3188, 10.5818)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D155D #355D15
analogous
#19155D #3D155D #5D1559
triadic
#3D155D #5D3D15 #155D3D
tetradic
#3D155D #5D1915 #355D15 #15595D
square
#3D155D #5D1915 #355D15 #15595D
split-complementary
#3D155D #595D15 #155D19
monochromatic
#100619 #1C0A2B #3D155D #5E208F #7E2CC1

Accessibility & contrast

On white

14.35
#3D155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3D155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D155D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D155D#FFFFFF#000000##FFFFFF
##3D155D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#372637
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d155d;
/* rgb */ color: rgb(61, 21, 93);
/* oklch */ color: oklch(30.0% 0.122 305.5);
Tailwind
colors: {
  custom: {
    50: '#76578b',
    500: '#3d155d',
    950: '#000000',
  },
}
SCSS
$custom: #3d155d;
$custom-light: #76578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d155d",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 273.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3002,
    "c": 0.12193,
    "h": 305.5
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#3D155D
secondary
#629439
accent
#E6428B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D155D

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

Preview Lab → · Contrast checker → · Palette generator →

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