#3C158E#3C158E

#3C158E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.178 H 287.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3C158E
RGBrgb(60, 21, 142)
HSLhsl(259, 74%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(57.7%, 85.2%, 0%, 44.3%)
CIE-LABlab(21.76, 46.95, -58.79)
CIE-LCHlch(21.76, 75.23, 308.61°)
OKLaboklab(34.72% 0.0537 -0.1693)
OKLCHoklch(34.72% 0.178 287.6)
XYZxyz(7.0127, 3.4496, 25.8823)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C158E #678E15
analogous
#152B8E #3C158E #79158E
triadic
#3C158E #8E3C15 #158E3C
tetradic
#3C158E #8E152B #678E15 #158E79
square
#3C158E #8E152B #678E15 #158E79
split-complementary
#3C158E #8E7915 #2B8E15
monochromatic
#0F0523 #250D59 #3C158E #531DC3 #713BE2

Accessibility & contrast

On white

12.43
#3C158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3C158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C158E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C158E#FFFFFF#000000##FFFFFF
##3C158E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#163B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c158e;
/* rgb */ color: rgb(60, 21, 142);
/* oklch */ color: oklch(34.7% 0.178 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d5ab0',
    500: '#3c158e',
    950: '#000000',
  },
}
SCSS
$custom: #3c158e;
$custom-light: #7d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c158e",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 259.339,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.17755,
    "h": 287.6
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#3C158E
secondary
#97C23D
accent
#F137B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C158E

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

Preview Lab → · Contrast checker → · Palette generator →

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