#3C187F#3C187F

#3C187F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.158 H 291.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3C187F
RGBrgb(60, 24, 127)
HSLhsl(261, 68%, 30%)
HSVhsv(261, 81%, 50%)
CMYKcmyk(52.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.62, 41.46, -51.24)
CIE-LCHlch(20.62, 65.91, 308.98°)
OKLaboklab(33.45% 0.057 -0.1472)
OKLCHoklch(33.45% 0.158 291.2)
XYZxyz(6.0198, 3.1460, 20.3646)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C187F #5B7F18
analogous
#18277F #3C187F #70187F
triadic
#3C187F #7F3C18 #187F3C
tetradic
#3C187F #7F1827 #5B7F18 #187F70
square
#3C187F #7F1827 #5B7F18 #187F70
split-complementary
#3C187F #7F7018 #277F18
monochromatic
#0C051A #240E4C #3C187F #5422B2 #7038D9

Accessibility & contrast

On white

12.89
#3C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3C187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C187F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C187F#FFFFFF#000000##FFFFFF
##3C187F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#25364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c187f;
/* rgb */ color: rgb(60, 24, 127);
/* oklch */ color: oklch(33.5% 0.158 291.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aa5',
    500: '#3c187f',
    950: '#000000',
  },
}
SCSS
$custom: #3c187f;
$custom-light: #7a5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c187f",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 260.971,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33453,
    "c": 0.15789,
    "h": 291.2
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#3C187F
secondary
#8BB33F
accent
#EB3DAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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