#3C2A87#3C2A87

#3C2A87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.147 H 285.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3C2A87
RGBrgb(60, 42, 135)
HSLhsl(252, 53%, 35%)
HSVhsv(252, 69%, 53%)
CMYKcmyk(55.6%, 68.9%, 0%, 47.1%)
CIE-LABlab(24.84, 34.16, -49.35)
CIE-LCHlch(24.84, 60.02, 304.69°)
OKLaboklab(36.68% 0.0392 -0.1418)
OKLCHoklch(36.68% 0.147 285.4)
XYZxyz(7.0633, 4.3655, 23.3874)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2A87 #75872A
analogous
#2A4787 #3C2A87 #6B2A87
triadic
#3C2A87 #873C2A #2A873C
tetradic
#3C2A87 #872A47 #75872A #2A876B
square
#3C2A87 #872A47 #75872A #2A876B
split-complementary
#3C2A87 #876B2A #47872A
monochromatic
#130D2A #271B58 #3C2A87 #5139B6 #745ECD

Accessibility & contrast

On white

11.21
#3C2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3C2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2A87
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2A87#FFFFFF#000000##FFFFFF
##3C2A871.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#1C4255
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c2a87;
/* rgb */ color: rgb(60, 42, 135);
/* oklch */ color: oklch(36.7% 0.147 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a65ab',
    500: '#3c2a87',
    950: '#000000',
  },
}
SCSS
$custom: #3c2a87;
$custom-light: #7a65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2a87",
  "rgb": {
    "r": 60,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 251.613,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36679,
    "c": 0.14712,
    "h": 285.4
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#3C2A87
secondary
#A2B35A
accent
#DC4CC0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3C2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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