#3C155B#3C155B

#3C155B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.119 H 305.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#3C155B
RGBrgb(60, 21, 91)
HSLhsl(273, 63%, 22%)
HSVhsv(273, 77%, 36%)
CMYKcmyk(34.1%, 76.9%, 0%, 64.3%)
CIE-LABlab(16.76, 33.00, -34.11)
CIE-LCHlch(16.76, 47.46, 314.05°)
OKLaboklab(29.71% 0.0696 -0.0969)
OKLCHoklch(29.71% 0.119 305.7)
XYZxyz(4.0196, 2.2524, 10.1185)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C155B #345B15
analogous
#19155B #3C155B #5B1557
triadic
#3C155B #5B3C15 #155B3C
tetradic
#3C155B #5B1915 #345B15 #15575B
square
#3C155B #5B1915 #345B15 #15575B
split-complementary
#3C155B #575B15 #155B19
monochromatic
#100619 #1B0A29 #3C155B #5D208D #7E2CBE

Accessibility & contrast

On white

14.48
#3C155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3C155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C155B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C155B#FFFFFF#000000##FFFFFF
##3C155B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#362536
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3c155b;
/* rgb */ color: rgb(60, 21, 91);
/* oklch */ color: oklch(29.7% 0.119 305.7);
Tailwind
colors: {
  custom: {
    50: '#75568a',
    500: '#3c155b',
    950: '#000000',
  },
}
SCSS
$custom: #3c155b;
$custom-light: #75568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3c155b",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 273.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29709,
    "c": 0.11934,
    "h": 305.7
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#3C155B
secondary
#619239
accent
#E6428B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C155B

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

Preview Lab → · Contrast checker → · Palette generator →

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