#3D186F#3D186F

#3D186F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.139 H 297.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#3D186F
RGBrgb(61, 24, 111)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 44%)
CMYKcmyk(45%, 78.4%, 0%, 56.5%)
CIE-LABlab(19.20, 37.13, -43.31)
CIE-LCHlch(19.20, 57.04, 310.61°)
OKLaboklab(32.01% 0.0635 -0.1239)
OKLCHoklch(32.01% 0.139 297.1)
XYZxyz(5.1196, 2.7930, 15.3052)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D186F #4A6F18
analogous
#181F6F #3D186F #69186F
triadic
#3D186F #6F3D18 #186F3D
tetradic
#3D186F #6F181F #4A6F18 #186F69
square
#3D186F #6F181F #4A6F18 #186F69
split-complementary
#3D186F #6F6918 #1F6F18
monochromatic
#0E0519 #210D3D #3D186F #5923A1 #752FD2

Accessibility & contrast

On white

13.47
#3D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3D186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D186F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D186F#FFFFFF#000000##FFFFFF
##3D186F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#302F42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3d186f;
/* rgb */ color: rgb(61, 24, 111);
/* oklch */ color: oklch(32.0% 0.139 297.1);
Tailwind
colors: {
  custom: {
    50: '#785999',
    500: '#3d186f',
    950: '#000000',
  },
}
SCSS
$custom: #3d186f;
$custom-light: #785999;
$custom-dark: #000000;
JSON
{
  "hex": "#3d186f",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 265.517,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32011,
    "c": 0.13924,
    "h": 297.1
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#3D186F
secondary
#79A53E
accent
#E740A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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