#3D156F#3D156F

#3D156F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.143 H 297.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3D156F
RGBrgb(61, 21, 111)
HSLhsl(267, 68%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(45%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.70, 38.55, -44.12)
CIE-LCHlch(18.70, 58.59, 311.15°)
OKLaboklab(31.66% 0.0662 -0.1263)
OKLCHoklch(31.66% 0.143 297.7)
XYZxyz(5.0611, 2.6760, 15.2857)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D156F #476F15
analogous
#151A6F #3D156F #6A156F
triadic
#3D156F #6F3D15 #156F3D
tetradic
#3D156F #6F151A #476F15 #156F6A
square
#3D156F #6F151A #476F15 #156F6A
split-complementary
#3D156F #6F6A15 #1A6F15
monochromatic
#0E051A #210B3C #3D156F #591FA2 #7628D6

Accessibility & contrast

On white

13.68
#3D156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D156F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D156F#FFFFFF#000000##FFFFFF
##3D156F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#302E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d156f;
/* rgb */ color: rgb(61, 21, 111);
/* oklch */ color: oklch(31.7% 0.143 297.7);
Tailwind
colors: {
  custom: {
    50: '#785899',
    500: '#3d156f',
    950: '#000000',
  },
}
SCSS
$custom: #3d156f;
$custom-light: #785899;
$custom-dark: #000000;
JSON
{
  "hex": "#3d156f",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 266.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31662,
    "c": 0.14261,
    "h": 297.7
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#3D156F
secondary
#76A53A
accent
#EB3D9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3D156F

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

Preview Lab → · Contrast checker → · Palette generator →

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