#3C2187#3C2187

#3C2187 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.158 H 287.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#3C2187
RGBrgb(60, 33, 135)
HSLhsl(256, 61%, 33%)
HSVhsv(256, 76%, 53%)
CMYKcmyk(55.6%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.99, 39.30, -52.39)
CIE-LCHlch(22.99, 65.49, 306.87°)
OKLaboklab(35.36% 0.0474 -0.1507)
OKLCHoklch(35.36% 0.158 287.5)
XYZxyz(6.7792, 3.7973, 23.2927)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2187 #6C8721
analogous
#213987 #3C2187 #6F2187
triadic
#3C2187 #873C21 #21873C
tetradic
#3C2187 #872139 #6C8721 #21876F
square
#3C2187 #872139 #6C8721 #21876F
split-complementary
#3C2187 #876F21 #398721
monochromatic
#100925 #261556 #3C2187 #522DB8 #724FD4

Accessibility & contrast

On white

11.93
#3C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3C2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2187
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2187#FFFFFF#000000##FFFFFF
##3C21871.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#1D3D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3c2187;
/* rgb */ color: rgb(60, 33, 135);
/* oklch */ color: oklch(35.4% 0.158 287.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fab',
    500: '#3c2187',
    950: '#000000',
  },
}
SCSS
$custom: #3c2187;
$custom-light: #7a5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2187",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 255.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.15797,
    "h": 287.5
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#3C2187
secondary
#9BB74D
accent
#E444BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3C2187

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

Preview Lab → · Contrast checker → · Palette generator →

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