#3C186A#3C186A

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

Color values

HEX#3C186A
RGBrgb(60, 24, 106)
HSLhsl(266, 63%, 25%)
HSVhsv(266, 77%, 42%)
CMYKcmyk(43.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.60, 35.55, -41.03)
CIE-LCHlch(18.60, 54.28, 310.91°)
OKLaboklab(31.42% 0.0631 -0.1173)
OKLCHoklch(31.42% 0.133 298.3)
XYZxyz(4.7910, 2.6545, 13.8928)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C186A #466A18
analogous
#181D6A #3C186A #65186A
triadic
#3C186A #6A3C18 #186A3C
tetradic
#3C186A #6A181D #466A18 #186A65
square
#3C186A #6A181D #466A18 #186A65
split-complementary
#3C186A #6A6518 #1D6A18
monochromatic
#0E0619 #200D38 #3C186A #58239C #742FCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3C186A#FFFFFF#000000##FFFFFF
##3C186A1.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)
#002D6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#312D3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c186a;
/* rgb */ color: rgb(60, 24, 106);
/* oklch */ color: oklch(31.4% 0.133 298.3);
Tailwind
colors: {
  custom: {
    50: '#775995',
    500: '#3c186a',
    950: '#000000',
  },
}
SCSS
$custom: #3c186a;
$custom-light: #775995;
$custom-dark: #000000;
JSON
{
  "hex": "#3c186a",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 266.341,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31423,
    "c": 0.13319,
    "h": 298.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#3C186A
secondary
#75A03E
accent
#E6429E
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3C186A

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

Preview Lab → · Contrast checker → · Palette generator →

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