#3D156D#3D156D

#3D156D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.140 H 298.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#3D156D
RGBrgb(61, 21, 109)
HSLhsl(267, 68%, 25%)
HSVhsv(267, 81%, 43%)
CMYKcmyk(44%, 80.7%, 0%, 57.3%)
CIE-LABlab(18.51, 38.01, -43.13)
CIE-LCHlch(18.51, 57.49, 311.39°)
OKLaboklab(31.47% 0.0668 -0.1234)
OKLCHoklch(31.47% 0.14 298.4)
XYZxyz(4.9522, 2.6325, 14.7122)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D156D #456D15
analogous
#15196D #3D156D #69156D
triadic
#3D156D #6D3D15 #156D3D
tetradic
#3D156D #6D1519 #456D15 #156D69
square
#3D156D #6D1519 #456D15 #156D69
split-complementary
#3D156D #6D6915 #196D15
monochromatic
#0E051A #200B3A #3D156D #5A1FA0 #7629D4

Accessibility & contrast

On white

13.76
#3D156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3D156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D156D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D156D#FFFFFF#000000##FFFFFF
##3D156D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#312D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d156d;
/* rgb */ color: rgb(61, 21, 109);
/* oklch */ color: oklch(31.5% 0.140 298.4);
Tailwind
colors: {
  custom: {
    50: '#785798',
    500: '#3d156d',
    950: '#000000',
  },
}
SCSS
$custom: #3d156d;
$custom-light: #785798;
$custom-dark: #000000;
JSON
{
  "hex": "#3d156d",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 267.273,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31471,
    "c": 0.14033,
    "h": 298.4
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#3D156D
secondary
#74A33A
accent
#EB3D9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3D156D

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

Preview Lab → · Contrast checker → · Palette generator →

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