#3C288C#3C288C

#3C288C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.156 H 284.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3C288C
RGBrgb(60, 40, 140)
HSLhsl(252, 56%, 35%)
HSVhsv(252, 71%, 55%)
CMYKcmyk(57.1%, 71.4%, 0%, 45.1%)
CIE-LABlab(24.86, 36.93, -52.44)
CIE-LCHlch(24.86, 64.14, 305.15°)
OKLaboklab(36.83% 0.0402 -0.1509)
OKLCHoklch(36.83% 0.156 284.9)
XYZxyz(7.3545, 4.3713, 25.2621)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C288C #788C28
analogous
#28468C #3C288C #6E288C
triadic
#3C288C #8C3C28 #288C3C
tetradic
#3C288C #8C2846 #788C28 #288C6E
square
#3C288C #8C2846 #788C28 #288C6E
split-complementary
#3C288C #8C6E28 #468C28
monochromatic
#130D2D #281A5C #3C288C #5036BC #755ED1

Accessibility & contrast

On white

11.20
#3C288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C288C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C288C#FFFFFF#000000##FFFFFF
##3C288C1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#164257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c288c;
/* rgb */ color: rgb(60, 40, 140);
/* oklch */ color: oklch(36.8% 0.156 284.9);
Tailwind
colors: {
  custom: {
    50: '#7b64af',
    500: '#3c288c',
    950: '#000000',
  },
}
SCSS
$custom: #3c288c;
$custom-light: #7b64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3c288c",
  "rgb": {
    "r": 60,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 252,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3683,
    "c": 0.15613,
    "h": 284.9
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C288C

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

Preview Lab → · Contrast checker → · Palette generator →

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