#3D156C#3D156C

#3D156C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.139 H 298.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3D156C
RGBrgb(61, 21, 108)
HSLhsl(268, 67%, 25%)
HSVhsv(268, 81%, 42%)
CMYKcmyk(43.5%, 80.6%, 0%, 57.6%)
CIE-LABlab(18.41, 37.74, -42.63)
CIE-LCHlch(18.41, 56.94, 311.51°)
OKLaboklab(31.38% 0.0671 -0.1219)
OKLCHoklch(31.38% 0.139 298.8)
XYZxyz(4.8987, 2.6111, 14.4303)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D156C #446C15
analogous
#15196C #3D156C #68156C
triadic
#3D156C #6C3D15 #156C3D
tetradic
#3D156C #6C1519 #446C15 #156C68
square
#3D156C #6C1519 #446C15 #156C68
split-complementary
#3D156C #6C6815 #196C15
monochromatic
#0E051A #200B39 #3D156C #5A1F9F #7729D2

Accessibility & contrast

On white

13.80
#3D156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D156C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D156C#FFFFFF#000000##FFFFFF
##3D156C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#312C40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d156c;
/* rgb */ color: rgb(61, 21, 108);
/* oklch */ color: oklch(31.4% 0.139 298.8);
Tailwind
colors: {
  custom: {
    50: '#785797',
    500: '#3d156c',
    950: '#000000',
  },
}
SCSS
$custom: #3d156c;
$custom-light: #785797;
$custom-dark: #000000;
JSON
{
  "hex": "#3d156c",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 267.586,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31377,
    "c": 0.13918,
    "h": 298.8
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#3D156C
secondary
#73A33A
accent
#EA3D9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D156C

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

Preview Lab → · Contrast checker → · Palette generator →

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