#3D155F#3D155F

#3D155F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.124 H 304.5°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#3D155F
RGBrgb(61, 21, 95)
HSLhsl(272, 64%, 23%)
HSVhsv(272, 78%, 37%)
CMYKcmyk(35.8%, 77.9%, 0%, 62.7%)
CIE-LABlab(17.25, 34.26, -35.98)
CIE-LCHlch(17.25, 49.68, 313.60°)
OKLaboklab(30.19% 0.0704 -0.1024)
OKLCHoklch(30.19% 0.124 304.5)
XYZxyz(4.2577, 2.3547, 11.0544)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D155F #375F15
analogous
#18155F #3D155F #5F155C
triadic
#3D155F #5F3D15 #155F3D
tetradic
#3D155F #5F1815 #375F15 #155C5F
square
#3D155F #5F1815 #375F15 #155C5F
split-complementary
#3D155F #5C5F15 #155F18
monochromatic
#100619 #1D0A2D #3D155F #5D2091 #7D2BC3

Accessibility & contrast

On white

14.28
#3D155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3D155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D155F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D155F#FFFFFF#000000##FFFFFF
##3D155F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#372738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d155f;
/* rgb */ color: rgb(61, 21, 95);
/* oklch */ color: oklch(30.2% 0.124 304.5);
Tailwind
colors: {
  custom: {
    50: '#76578d',
    500: '#3d155f',
    950: '#000000',
  },
}
SCSS
$custom: #3d155f;
$custom-light: #76578d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d155f",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 272.432,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30194,
    "c": 0.12424,
    "h": 304.5
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#3D155F
secondary
#64963A
accent
#E7418D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D155F

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

Preview Lab → · Contrast checker → · Palette generator →

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