#3D186D#3D186D

#3D186D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.137 H 297.9°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#3D186D
RGBrgb(61, 24, 109)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 43%)
CMYKcmyk(44%, 78%, 0%, 57.3%)
CIE-LABlab(19.01, 36.57, -42.31)
CIE-LCHlch(19.01, 55.93, 310.84°)
OKLaboklab(31.83% 0.064 -0.121)
OKLCHoklch(31.83% 0.137 297.9)
XYZxyz(5.0107, 2.7494, 14.7317)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D186D #486D18
analogous
#181D6D #3D186D #67186D
triadic
#3D186D #6D3D18 #186D3D
tetradic
#3D186D #6D181D #486D18 #186D67
square
#3D186D #6D181D #486D18 #186D67
split-complementary
#3D186D #6D6718 #1D6D18
monochromatic
#0E0619 #210D3B #3D186D #59239F #752ED1

Accessibility & contrast

On white

13.55
#3D186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D186D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D186D#FFFFFF#000000##FFFFFF
##3D186D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#312E41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d186d;
/* rgb */ color: rgb(61, 24, 109);
/* oklch */ color: oklch(31.8% 0.137 297.9);
Tailwind
colors: {
  custom: {
    50: '#785998',
    500: '#3d186d',
    950: '#000000',
  },
}
SCSS
$custom: #3d186d;
$custom-light: #785998;
$custom-dark: #000000;
JSON
{
  "hex": "#3d186d",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 266.118,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31825,
    "c": 0.13688,
    "h": 297.9
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#3D186D
secondary
#77A33E
accent
#E7419F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D186D

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

Preview Lab → · Contrast checker → · Palette generator →

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