#3C155E#3C155E

#3C155E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.123 H 304.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#3C155E
RGBrgb(60, 21, 94)
HSLhsl(272, 63%, 23%)
HSVhsv(272, 78%, 37%)
CMYKcmyk(36.2%, 77.7%, 0%, 63.1%)
CIE-LABlab(17.01, 33.79, -35.70)
CIE-LCHlch(17.01, 49.15, 313.42°)
OKLaboklab(29.97% 0.069 -0.1016)
OKLCHoklch(29.97% 0.123 304.2)
XYZxyz(4.1516, 2.3052, 10.8137)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C155E #375E15
analogous
#18155E #3C155E #5E155B
triadic
#3C155E #5E3C15 #155E3C
tetradic
#3C155E #5E1815 #375E15 #155B5E
square
#3C155E #5E1815 #375E15 #155B5E
split-complementary
#3C155E #5B5E15 #155E18
monochromatic
#100619 #1C0A2C #3C155E #5C2090 #7C2BC2

Accessibility & contrast

On white

14.37
#3C155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3C155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C155E
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C155E#FFFFFF#000000##FFFFFF
##3C155E1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#352738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c155e;
/* rgb */ color: rgb(60, 21, 94);
/* oklch */ color: oklch(30.0% 0.123 304.2);
Tailwind
colors: {
  custom: {
    50: '#76568c',
    500: '#3c155e',
    950: '#000000',
  },
}
SCSS
$custom: #3c155e;
$custom-light: #76568c;
$custom-dark: #000000;
JSON
{
  "hex": "#3c155e",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 272.055,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29969,
    "c": 0.12284,
    "h": 304.2
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#3C155E
secondary
#649539
accent
#E7418E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C155E

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

Preview Lab → · Contrast checker → · Palette generator →

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