#3C157E#3C157E

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

Color values

HEX#3C157E
RGBrgb(60, 21, 126)
HSLhsl(262, 71%, 29%)
HSVhsv(262, 83%, 49%)
CMYKcmyk(52.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(20.06, 42.52, -51.53)
CIE-LCHlch(20.06, 66.81, 309.53°)
OKLaboklab(33.03% 0.0596 -0.148)
OKLCHoklch(33.03% 0.16 291.9)
XYZxyz(5.8965, 3.0031, 20.0036)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C157E #577E15
analogous
#15227E #3C157E #71157E
triadic
#3C157E #7E3C15 #157E3C
tetradic
#3C157E #7E1522 #577E15 #157E71
square
#3C157E #7E1522 #577E15 #157E71
split-complementary
#3C157E #7E7115 #227E15
monochromatic
#0C041A #230C4A #3C157E #551EB2 #7131DD

Accessibility & contrast

On white

13.12
#3C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C157E
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C157E#FFFFFF#000000##FFFFFF
##3C157E1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#25344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c157e;
/* rgb */ color: rgb(60, 21, 126);
/* oklch */ color: oklch(33.0% 0.160 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a58a4',
    500: '#3c157e',
    950: '#000000',
  },
}
SCSS
$custom: #3c157e;
$custom-light: #7a58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c157e",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 262.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33032,
    "c": 0.15959,
    "h": 291.9
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#3C157E
secondary
#87B33C
accent
#EE3AAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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