#3C17B4#3C17B4

#3C17B4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.1% C 0.218 H 280.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#3C17B4
RGBrgb(60, 23, 180)
HSLhsl(254, 77%, 40%)
HSVhsv(254, 87%, 71%)
CMYKcmyk(66.7%, 87.2%, 0%, 29.4%)
CIE-LABlab(26.36, 56.63, -74.35)
CIE-LCHlch(26.36, 93.45, 307.30°)
OKLaboklab(39.12% 0.0383 -0.2145)
OKLCHoklch(39.12% 0.218 280.1)
XYZxyz(10.4055, 4.8679, 43.5624)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C17B4 #8FB417
analogous
#1741B4 #3C17B4 #8A17B4
triadic
#3C17B4 #B43C17 #17B43C
tetradic
#3C17B4 #B41741 #8FB417 #17B48A
square
#3C17B4 #B41741 #8FB417 #17B48A
split-complementary
#3C17B4 #B48A17 #41B417
monochromatic
#180947 #2A107E #3C17B4 #5225E3 #7D5BEA

Accessibility & contrast

On white

10.64
#3C17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3C17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C17B4
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C17B4#FFFFFF#000000##FFFFFF
##3C17B41.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c17b4;
/* rgb */ color: rgb(60, 23, 180);
/* oklch */ color: oklch(39.1% 0.218 280.1);
Tailwind
colors: {
  custom: {
    50: '#845dcc',
    500: '#3c17b4',
    950: '#000000',
  },
}
SCSS
$custom: #3c17b4;
$custom-light: #845dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3c17b4",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 254.14,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39123,
    "c": 0.21795,
    "h": 280.1
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#3C17B4
secondary
#B2CE59
accent
#F434C7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3C17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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