#4F288D#4F288D

#4F288D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.157 H 295.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4F288D
RGBrgb(79, 40, 141)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(44%, 71.6%, 0%, 44.7%)
CIE-LABlab(27.03, 40.65, -49.44)
CIE-LCHlch(27.03, 64.01, 309.43°)
OKLaboklab(38.89% 0.0686 -0.1414)
OKLCHoklch(38.89% 0.157 295.9)
XYZxyz(8.7897, 5.1027, 25.7160)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288D #668D28
analogous
#28348D #4F288D #81288D
triadic
#4F288D #8D4F28 #288D4F
tetradic
#4F288D #8D2834 #668D28 #288D81
square
#4F288D #8D2834 #668D28 #288D81
split-complementary
#4F288D #8D8128 #348D28
monochromatic
#1A0D2E #341A5D #4F288D #6A36BD #8B5ED1

Accessibility & contrast

On white

10.39
#4F288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288D#FFFFFF#000000##FFFFFF
##4F288D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3E4157
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f288d;
/* rgb */ color: rgb(79, 40, 141);
/* oklch */ color: oklch(38.9% 0.157 295.9);
Tailwind
colors: {
  custom: {
    50: '#8665af',
    500: '#4f288d',
    950: '#000000',
  },
}
SCSS
$custom: #4f288d;
$custom-light: #8665af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288d",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 263.168,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38887,
    "c": 0.15716,
    "h": 295.9
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#4F288D
secondary
#93B75A
accent
#DF49A5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F288D

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

Preview Lab → · Contrast checker → · Palette generator →

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