#3C187A#3C187A

#3C187A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.152 H 292.7°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3C187A
RGBrgb(60, 24, 122)
HSLhsl(262, 67%, 29%)
HSVhsv(262, 80%, 48%)
CMYKcmyk(50.8%, 80.3%, 0%, 52.2%)
CIE-LABlab(20.12, 40.05, -48.88)
CIE-LCHlch(20.12, 63.19, 309.33°)
OKLaboklab(32.95% 0.0586 -0.1403)
OKLCHoklch(32.95% 0.152 292.7)
XYZxyz(5.7020, 3.0189, 18.6908)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C187A #567A18
analogous
#18257A #3C187A #6D187A
triadic
#3C187A #7A3C18 #187A3C
tetradic
#3C187A #7A1825 #567A18 #187A6D
square
#3C187A #7A1825 #567A18 #187A6D
split-complementary
#3C187A #7A6D18 #257A18
monochromatic
#0D051A #230E47 #3C187A #5522AD #7135D7

Accessibility & contrast

On white

13.09
#3C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C187A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C187A#FFFFFF#000000##FFFFFF
##3C187A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#283348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c187a;
/* rgb */ color: rgb(60, 24, 122);
/* oklch */ color: oklch(33.0% 0.152 292.7);
Tailwind
colors: {
  custom: {
    50: '#795aa1',
    500: '#3c187a',
    950: '#000000',
  },
}
SCSS
$custom: #3c187a;
$custom-light: #795aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c187a",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 262.041,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32953,
    "c": 0.15207,
    "h": 292.7
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#3C187A
secondary
#86AF3F
accent
#EA3EAB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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