#3C186C#3C186C

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

Color values

HEX#3C186C
RGBrgb(60, 24, 108)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 42%)
CMYKcmyk(44.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(18.79, 36.11, -42.03)
CIE-LCHlch(18.79, 55.41, 310.66°)
OKLaboklab(31.61% 0.0626 -0.1202)
OKLCHoklch(31.61% 0.136 297.5)
XYZxyz(4.8962, 2.6965, 14.4470)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C186C #486C18
analogous
#181E6C #3C186C #66186C
triadic
#3C186C #6C3C18 #186C3C
tetradic
#3C186C #6C181E #486C18 #186C66
square
#3C186C #6C181E #486C18 #186C66
split-complementary
#3C186C #6C6618 #1E6C18
monochromatic
#0E0619 #200D3A #3C186C #58239E #742ED0

Accessibility & contrast

On white

13.64
#3C186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C186C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C186C#FFFFFF#000000##FFFFFF
##3C186C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c186c;
/* rgb */ color: rgb(60, 24, 108);
/* oklch */ color: oklch(31.6% 0.136 297.5);
Tailwind
colors: {
  custom: {
    50: '#775997',
    500: '#3c186c',
    950: '#000000',
  },
}
SCSS
$custom: #3c186c;
$custom-light: #775997;
$custom-dark: #000000;
JSON
{
  "hex": "#3c186c",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 265.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31608,
    "c": 0.13557,
    "h": 297.5
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#3C186C
secondary
#77A23E
accent
#E741A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3C186C

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

Preview Lab → · Contrast checker → · Palette generator →

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