#4C288B#4C288B

#4C288B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.155 H 294.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4C288B
RGBrgb(76, 40, 139)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(45.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.50, 39.51, -49.08)
CIE-LCHlch(26.50, 63.00, 308.84°)
OKLaboklab(38.38% 0.0645 -0.1404)
OKLCHoklch(38.38% 0.155 294.7)
XYZxyz(8.3982, 4.9179, 24.9279)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288B #678B28
analogous
#28368B #4C288B #7D288B
triadic
#4C288B #8B4C28 #288B4C
tetradic
#4C288B #8B2836 #678B28 #288B7D
square
#4C288B #8B2836 #678B28 #288B7D
split-complementary
#4C288B #8B7D28 #368B28
monochromatic
#180D2C #321A5B #4C288B #6636BB #875DD0

Accessibility & contrast

On white

10.59
#4C288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288B#FFFFFF#000000##FFFFFF
##4C288B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3A4156
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c288b;
/* rgb */ color: rgb(76, 40, 139);
/* oklch */ color: oklch(38.4% 0.155 294.7);
Tailwind
colors: {
  custom: {
    50: '#8465ae',
    500: '#4c288b',
    950: '#000000',
  },
}
SCSS
$custom: #4c288b;
$custom-light: #8465ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288b",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 261.818,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38378,
    "c": 0.15451,
    "h": 294.7
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#4C288B
secondary
#94B659
accent
#DF49A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C288B

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

Preview Lab → · Contrast checker → · Palette generator →

#4C288B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva