#3C288D#3C288D

#3C288D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.157 H 284.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3C288D
RGBrgb(60, 40, 141)
HSLhsl(252, 56%, 35%)
HSVhsv(252, 72%, 55%)
CMYKcmyk(57.4%, 71.6%, 0%, 44.7%)
CIE-LABlab(24.95, 37.25, -52.91)
CIE-LCHlch(24.95, 64.71, 305.14°)
OKLaboklab(36.92% 0.04 -0.1522)
OKLCHoklch(36.92% 0.157 284.7)
XYZxyz(7.4285, 4.4009, 25.6522)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C288D #798D28
analogous
#28468D #3C288D #6E288D
triadic
#3C288D #8D3C28 #288D3C
tetradic
#3C288D #8D2846 #798D28 #288D6E
square
#3C288D #8D2846 #798D28 #288D6E
split-complementary
#3C288D #8D6E28 #468D28
monochromatic
#130D2E #281A5D #3C288D #5036BD #755ED1

Accessibility & contrast

On white

11.17
#3C288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3C288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C288D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C288D#FFFFFF#000000##FFFFFF
##3C288D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#154357
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c288d;
/* rgb */ color: rgb(60, 40, 141);
/* oklch */ color: oklch(36.9% 0.157 284.7);
Tailwind
colors: {
  custom: {
    50: '#7b64af',
    500: '#3c288d',
    950: '#000000',
  },
}
SCSS
$custom: #3c288d;
$custom-light: #7b64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3c288d",
  "rgb": {
    "r": 60,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 251.881,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36924,
    "c": 0.15741,
    "h": 284.7
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#3C288D
secondary
#A4B75A
accent
#DF49C1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3C288D

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

Preview Lab → · Contrast checker → · Palette generator →

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