#3D186C#3D186C

#3D186C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.136 H 298.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#3D186C
RGBrgb(61, 24, 108)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 42%)
CMYKcmyk(43.5%, 77.8%, 0%, 57.6%)
CIE-LABlab(18.92, 36.29, -41.81)
CIE-LCHlch(18.92, 55.36, 310.96°)
OKLaboklab(31.73% 0.0642 -0.1195)
OKLCHoklch(31.73% 0.136 298.2)
XYZxyz(4.9572, 2.7280, 14.4498)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D186C #476C18
analogous
#181D6C #3D186C #67186C
triadic
#3D186C #6C3D18 #186C3D
tetradic
#3D186C #6C181D #476C18 #186C67
square
#3D186C #6C181D #476C18 #186C67
split-complementary
#3D186C #6C6718 #1D6C18
monochromatic
#0E0619 #210D3A #3D186C #59239E #762ED0

Accessibility & contrast

On white

13.59
#3D186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D186C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D186C#FFFFFF#000000##FFFFFF
##3D186C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d186c;
/* rgb */ color: rgb(61, 24, 108);
/* oklch */ color: oklch(31.7% 0.136 298.2);
Tailwind
colors: {
  custom: {
    50: '#785997',
    500: '#3d186c',
    950: '#000000',
  },
}
SCSS
$custom: #3d186c;
$custom-light: #785997;
$custom-dark: #000000;
JSON
{
  "hex": "#3d186c",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 266.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31732,
    "c": 0.1357,
    "h": 298.2
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#3D186C
secondary
#76A23E
accent
#E7419E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D186C

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

Preview Lab → · Contrast checker → · Palette generator →

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