#3C287D#3C287D

#3C287D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.136 H 288.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#3C287D
RGBrgb(60, 40, 125)
HSLhsl(254, 52%, 32%)
HSVhsv(254, 68%, 49%)
CMYKcmyk(52%, 68%, 0%, 51%)
CIE-LABlab(23.53, 32.19, -45.20)
CIE-LCHlch(23.53, 55.49, 305.46°)
OKLaboklab(35.46% 0.0427 -0.1296)
OKLCHoklch(35.46% 0.136 288.2)
XYZxyz(6.3229, 3.9586, 19.8290)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C287D #697D28
analogous
#283E7D #3C287D #67287D
triadic
#3C287D #7D3C28 #287D3C
tetradic
#3C287D #7D283E #697D28 #287D67
square
#3C287D #7D283E #697D28 #287D67
split-complementary
#3C287D #7D6728 #3E7D28
monochromatic
#0F0A20 #26194F #3C287D #5237AB #7156C9

Accessibility & contrast

On white

11.72
#3C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C287D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C287D#FFFFFF#000000##FFFFFF
##3C287D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#253D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c287d;
/* rgb */ color: rgb(60, 40, 125);
/* oklch */ color: oklch(35.5% 0.136 288.2);
Tailwind
colors: {
  custom: {
    50: '#7863a3',
    500: '#3c287d',
    950: '#000000',
  },
}
SCSS
$custom: #3c287d;
$custom-light: #7863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c287d",
  "rgb": {
    "r": 60,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 254.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35464,
    "c": 0.13645,
    "h": 288.2
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#3C287D
secondary
#99AE53
accent
#DB4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #3C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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