#3C157C#3C157C

#3C157C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 292.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3C157C
RGBrgb(60, 21, 124)
HSLhsl(263, 71%, 28%)
HSVhsv(263, 83%, 49%)
CMYKcmyk(51.6%, 83.1%, 0%, 51.4%)
CIE-LABlab(19.85, 41.97, -50.60)
CIE-LCHlch(19.85, 65.73, 309.67°)
OKLaboklab(32.83% 0.0603 -0.1453)
OKLCHoklch(32.83% 0.157 292.5)
XYZxyz(5.7687, 2.9520, 19.3307)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C157C #557C15
analogous
#15227C #3C157C #6F157C
triadic
#3C157C #7C3C15 #157C3C
tetradic
#3C157C #7C1522 #557C15 #157C6F
square
#3C157C #7C1522 #557C15 #157C6F
split-complementary
#3C157C #7C6F15 #227C15
monochromatic
#0D041A #230C48 #3C157C #551EB0 #7130DC

Accessibility & contrast

On white

13.20
#3C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C157C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C157C#FFFFFF#000000##FFFFFF
##3C157C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#273349
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c157c;
/* rgb */ color: rgb(60, 21, 124);
/* oklch */ color: oklch(32.8% 0.157 292.5);
Tailwind
colors: {
  custom: {
    50: '#7a58a3',
    500: '#3c157c',
    950: '#000000',
  },
}
SCSS
$custom: #3c157c;
$custom-light: #7a58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c157c",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 262.718,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32827,
    "c": 0.15732,
    "h": 292.5
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#3C157C
secondary
#85B13C
accent
#EE3AAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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