#3C187C#3C187C

#3C187C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.154 H 292.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3C187C
RGBrgb(60, 24, 124)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 49%)
CMYKcmyk(51.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(20.32, 40.61, -49.83)
CIE-LCHlch(20.32, 64.28, 309.18°)
OKLaboklab(33.15% 0.058 -0.1431)
OKLCHoklch(33.15% 0.154 292.1)
XYZxyz(5.8272, 3.0689, 19.3502)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C187C #587C18
analogous
#18267C #3C187C #6E187C
triadic
#3C187C #7C3C18 #187C3C
tetradic
#3C187C #7C1826 #587C18 #187C6E
square
#3C187C #7C1826 #587C18 #187C6E
split-complementary
#3C187C #7C6E18 #267C18
monochromatic
#0C051A #230E49 #3C187C #5522AF #7136D8

Accessibility & contrast

On white

13.01
#3C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3C187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C187C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C187C#FFFFFF#000000##FFFFFF
##3C187C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#27344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c187c;
/* rgb */ color: rgb(60, 24, 124);
/* oklch */ color: oklch(33.2% 0.154 292.1);
Tailwind
colors: {
  custom: {
    50: '#795aa3',
    500: '#3c187c',
    950: '#000000',
  },
}
SCSS
$custom: #3c187c;
$custom-light: #795aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c187c",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 261.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33152,
    "c": 0.15441,
    "h": 292.1
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#3C187C
secondary
#88B13F
accent
#EA3DAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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