#3C288E#3C288E

#3C288E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.159 H 284.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3C288E
RGBrgb(60, 40, 142)
HSLhsl(252, 56%, 36%)
HSVhsv(252, 72%, 56%)
CMYKcmyk(57.7%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.05, 37.56, -53.38)
CIE-LCHlch(25.05, 65.27, 305.13°)
OKLaboklab(37.02% 0.0398 -0.1536)
OKLCHoklch(37.02% 0.159 284.5)
XYZxyz(7.5033, 4.4308, 26.0458)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C288E #7A8E28
analogous
#28478E #3C288E #6F288E
triadic
#3C288E #8E3C28 #288E3C
tetradic
#3C288E #8E2847 #7A8E28 #288E6F
square
#3C288E #8E2847 #7A8E28 #288E6F
split-complementary
#3C288E #8E6F28 #478E28
monochromatic
#140D2F #281B5E #3C288E #5035BE #755FD2

Accessibility & contrast

On white

11.13
#3C288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3C288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C288E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C288E#FFFFFF#000000##FFFFFF
##3C288E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#134358
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c288e;
/* rgb */ color: rgb(60, 40, 142);
/* oklch */ color: oklch(37.0% 0.159 284.5);
Tailwind
colors: {
  custom: {
    50: '#7b64b0',
    500: '#3c288e',
    950: '#000000',
  },
}
SCSS
$custom: #3c288e;
$custom-light: #7b64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c288e",
  "rgb": {
    "r": 60,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 251.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37019,
    "c": 0.15869,
    "h": 284.5
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#3C288E
secondary
#A5B75B
accent
#DF48C2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3C288E

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

Preview Lab → · Contrast checker → · Palette generator →

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