#3D186A#3D186A

#3D186A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.133 H 299.0°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3D186A
RGBrgb(61, 24, 106)
HSLhsl(267, 63%, 25%)
HSVhsv(267, 77%, 42%)
CMYKcmyk(42.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.74, 35.74, -40.80)
CIE-LCHlch(18.74, 54.24, 311.22°)
OKLaboklab(31.55% 0.0647 -0.1166)
OKLCHoklch(31.55% 0.133 299)
XYZxyz(4.8520, 2.6859, 13.8957)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D186A #456A18
analogous
#181C6A #3D186A #66186A
triadic
#3D186A #6A3D18 #186A3D
tetradic
#3D186A #6A181C #456A18 #186A66
square
#3D186A #6A181C #456A18 #186A66
split-complementary
#3D186A #6A6618 #1C6A18
monochromatic
#0E0619 #200D38 #3D186A #5A239C #762FCE

Accessibility & contrast

On white

13.66
#3D186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D186A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D186A#FFFFFF#000000##FFFFFF
##3D186A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#322D3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d186a;
/* rgb */ color: rgb(61, 24, 106);
/* oklch */ color: oklch(31.5% 0.133 299.0);
Tailwind
colors: {
  custom: {
    50: '#775995',
    500: '#3d186a',
    950: '#000000',
  },
}
SCSS
$custom: #3d186a;
$custom-light: #775995;
$custom-dark: #000000;
JSON
{
  "hex": "#3d186a",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 267.073,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31549,
    "c": 0.13333,
    "h": 299
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#3D186A
secondary
#74A03E
accent
#E6429C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D186A

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

Preview Lab → · Contrast checker → · Palette generator →

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