#4C288E#4C288E

#4C288E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.158 H 293.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4C288E
RGBrgb(76, 40, 142)
HSLhsl(261, 56%, 36%)
HSVhsv(261, 72%, 56%)
CMYKcmyk(46.5%, 71.8%, 0%, 44.3%)
CIE-LABlab(26.75, 40.36, -50.52)
CIE-LCHlch(26.75, 64.66, 308.62°)
OKLaboklab(38.64% 0.0639 -0.1447)
OKLCHoklch(38.64% 0.158 293.8)
XYZxyz(8.6204, 5.0068, 26.0982)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288E #6A8E28
analogous
#28378E #4C288E #7F288E
triadic
#4C288E #8E4C28 #288E4C
tetradic
#4C288E #8E2837 #6A8E28 #288E7F
square
#4C288E #8E2837 #6A8E28 #288E7F
split-complementary
#4C288E #8E7F28 #378E28
monochromatic
#190D2F #321B5E #4C288E #6635BE #875FD2

Accessibility & contrast

On white

10.49
#4C288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288E#FFFFFF#000000##FFFFFF
##4C288E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#394258
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c288e;
/* rgb */ color: rgb(76, 40, 142);
/* oklch */ color: oklch(38.6% 0.158 293.8);
Tailwind
colors: {
  custom: {
    50: '#8465b0',
    500: '#4c288e',
    950: '#000000',
  },
}
SCSS
$custom: #4c288e;
$custom-light: #8465b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288e",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 261.176,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38639,
    "c": 0.15815,
    "h": 293.8
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#4C288E
secondary
#97B75B
accent
#DF48AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C288E

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

Preview Lab → · Contrast checker → · Palette generator →

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