#3C2287#3C2287

#3C2287 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.157 H 287.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3C2287
RGBrgb(60, 34, 135)
HSLhsl(255, 60%, 33%)
HSVhsv(255, 75%, 53%)
CMYKcmyk(55.6%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.18, 38.76, -52.08)
CIE-LCHlch(23.18, 64.92, 306.66°)
OKLaboklab(35.49% 0.0466 -0.1498)
OKLCHoklch(35.49% 0.157 287.3)
XYZxyz(6.8074, 3.8536, 23.3021)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2287 #6D8722
analogous
#223A87 #3C2287 #6E2287
triadic
#3C2287 #873C22 #22873C
tetradic
#3C2287 #87223A #6D8722 #22876E
square
#3C2287 #87223A #6D8722 #22876E
split-complementary
#3C2287 #876E22 #3A8722
monochromatic
#110925 #261656 #3C2287 #522EB8 #7250D3

Accessibility & contrast

On white

11.86
#3C2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3C2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2287
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2287#FFFFFF#000000##FFFFFF
##3C22871.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c2287;
/* rgb */ color: rgb(60, 34, 135);
/* oklch */ color: oklch(35.5% 0.157 287.3);
Tailwind
colors: {
  custom: {
    50: '#7a60ab',
    500: '#3c2287',
    950: '#000000',
  },
}
SCSS
$custom: #3c2287;
$custom-light: #7a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2287",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 255.446,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35491,
    "c": 0.15684,
    "h": 287.3
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#3C2287
secondary
#9CB74E
accent
#E345BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3C2287

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

Preview Lab → · Contrast checker → · Palette generator →

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