#3D156E#3D156E

#3D156E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.141 H 298.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#3D156E
RGBrgb(61, 21, 110)
HSLhsl(267, 68%, 26%)
HSVhsv(267, 81%, 43%)
CMYKcmyk(44.5%, 80.9%, 0%, 56.9%)
CIE-LABlab(18.60, 38.28, -43.63)
CIE-LCHlch(18.60, 58.04, 311.26°)
OKLaboklab(31.57% 0.0665 -0.1249)
OKLCHoklch(31.57% 0.141 298)
XYZxyz(5.0064, 2.6541, 14.9974)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D156E #466E15
analogous
#151A6E #3D156E #69156E
triadic
#3D156E #6E3D15 #156E3D
tetradic
#3D156E #6E151A #466E15 #156E69
square
#3D156E #6E151A #466E15 #156E69
split-complementary
#3D156E #6E6915 #1A6E15
monochromatic
#0E051A #210B3B #3D156E #591FA1 #7629D5

Accessibility & contrast

On white

13.72
#3D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D156E
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D156E#FFFFFF#000000##FFFFFF
##3D156E1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#312D41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d156e;
/* rgb */ color: rgb(61, 21, 110);
/* oklch */ color: oklch(31.6% 0.141 298.0);
Tailwind
colors: {
  custom: {
    50: '#785798',
    500: '#3d156e',
    950: '#000000',
  },
}
SCSS
$custom: #3d156e;
$custom-light: #785798;
$custom-dark: #000000;
JSON
{
  "hex": "#3d156e",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 266.966,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31566,
    "c": 0.14147,
    "h": 298
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#3D156E
secondary
#75A43A
accent
#EB3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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