#3C157F#3C157F

#3C157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.161 H 291.6°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3C157F
RGBrgb(60, 21, 127)
HSLhsl(262, 72%, 29%)
HSVhsv(262, 83%, 50%)
CMYKcmyk(52.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(20.16, 42.79, -51.99)
CIE-LCHlch(20.16, 67.34, 309.46°)
OKLaboklab(33.14% 0.0592 -0.1494)
OKLCHoklch(33.14% 0.161 291.6)
XYZxyz(5.9613, 3.0291, 20.3451)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C157F #587F15
analogous
#15237F #3C157F #71157F
triadic
#3C157F #7F3C15 #157F3C
tetradic
#3C157F #7F1523 #587F15 #157F71
square
#3C157F #7F1523 #587F15 #157F71
split-complementary
#3C157F #7F7115 #237F15
monochromatic
#0C041A #230C4A #3C157F #551EB4 #7131DD

Accessibility & contrast

On white

13.08
#3C157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C157F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C157F#FFFFFF#000000##FFFFFF
##3C157F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#25344B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c157f;
/* rgb */ color: rgb(60, 21, 127);
/* oklch */ color: oklch(33.1% 0.161 291.6);
Tailwind
colors: {
  custom: {
    50: '#7a58a5',
    500: '#3c157f',
    950: '#000000',
  },
}
SCSS
$custom: #3c157f;
$custom-light: #7a58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c157f",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 262.075,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.16072,
    "h": 291.6
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#3C157F
secondary
#88B43C
accent
#EE39AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C157F

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

Preview Lab → · Contrast checker → · Palette generator →

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