#3C186E#3C186E

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

Color values

HEX#3C186E
RGBrgb(60, 24, 110)
HSLhsl(265, 64%, 26%)
HSVhsv(265, 78%, 43%)
CMYKcmyk(45.5%, 78.2%, 0%, 56.9%)
CIE-LABlab(18.97, 36.66, -43.03)
CIE-LCHlch(18.97, 56.54, 310.43°)
OKLaboklab(31.79% 0.0621 -0.1232)
OKLCHoklch(31.79% 0.138 296.8)
XYZxyz(5.0038, 2.7396, 15.0140)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C186E #4A6E18
analogous
#181F6E #3C186E #67186E
triadic
#3C186E #6E3C18 #186E3C
tetradic
#3C186E #6E181F #4A6E18 #186E67
square
#3C186E #6E181F #4A6E18 #186E67
split-complementary
#3C186E #6E6718 #1F6E18
monochromatic
#0E0519 #210D3C #3C186E #5723A0 #732FD2

Accessibility & contrast

On white

13.57
#3C186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C186E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C186E#FFFFFF#000000##FFFFFF
##3C186E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#2F2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3c186e;
/* rgb */ color: rgb(60, 24, 110);
/* oklch */ color: oklch(31.8% 0.138 296.8);
Tailwind
colors: {
  custom: {
    50: '#775998',
    500: '#3c186e',
    950: '#000000',
  },
}
SCSS
$custom: #3c186e;
$custom-light: #775998;
$custom-dark: #000000;
JSON
{
  "hex": "#3c186e",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 265.116,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31794,
    "c": 0.13794,
    "h": 296.8
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#3C186E
secondary
#79A43E
accent
#E741A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C186E

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

Preview Lab → · Contrast checker → · Palette generator →

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