#3D156A#3D156A

#3D156A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.137 H 299.6°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#3D156A
RGBrgb(61, 21, 106)
HSLhsl(268, 67%, 25%)
HSVhsv(268, 80%, 42%)
CMYKcmyk(42.5%, 80.2%, 0%, 58.4%)
CIE-LABlab(18.23, 37.20, -41.63)
CIE-LCHlch(18.23, 55.83, 311.78°)
OKLaboklab(31.19% 0.0677 -0.119)
OKLCHoklch(31.19% 0.137 299.6)
XYZxyz(4.7935, 2.5690, 13.8762)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D156A #426A15
analogous
#15186A #3D156A #67156A
triadic
#3D156A #6A3D15 #156A3D
tetradic
#3D156A #6A1518 #426A15 #156A67
square
#3D156A #6A1518 #426A15 #156A67
split-complementary
#3D156A #6A6715 #186A15
monochromatic
#0F051A #200B37 #3D156A #5A1F9D #7829D0

Accessibility & contrast

On white

13.87
#3D156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3D156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D156A
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D156A#FFFFFF#000000##FFFFFF
##3D156A1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#322B3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3d156a;
/* rgb */ color: rgb(61, 21, 106);
/* oklch */ color: oklch(31.2% 0.137 299.6);
Tailwind
colors: {
  custom: {
    50: '#785795',
    500: '#3d156a',
    950: '#000000',
  },
}
SCSS
$custom: #3d156a;
$custom-light: #785795;
$custom-dark: #000000;
JSON
{
  "hex": "#3d156a",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 268.235,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31189,
    "c": 0.13689,
    "h": 299.6
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#3D156A
secondary
#70A13A
accent
#EA3E99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D156A

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

Preview Lab → · Contrast checker → · Palette generator →

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