#4F288E#4F288E

#4F288E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.158 H 295.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4F288E
RGBrgb(79, 40, 142)
HSLhsl(263, 56%, 36%)
HSVhsv(263, 72%, 56%)
CMYKcmyk(44.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(27.11, 40.93, -49.93)
CIE-LCHlch(27.11, 64.56, 309.34°)
OKLaboklab(38.97% 0.0684 -0.1428)
OKLCHoklch(38.97% 0.158 295.6)
XYZxyz(8.8644, 5.1326, 26.1096)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288E #678E28
analogous
#28348E #4F288E #82288E
triadic
#4F288E #8E4F28 #288E4F
tetradic
#4F288E #8E2834 #678E28 #288E82
square
#4F288E #8E2834 #678E28 #288E82
split-complementary
#4F288E #8E8228 #348E28
monochromatic
#1A0D2F #341B5E #4F288E #6A35BE #8B5FD2

Accessibility & contrast

On white

10.36
#4F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288E#FFFFFF#000000##FFFFFF
##4F288E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3E4158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f288e;
/* rgb */ color: rgb(79, 40, 142);
/* oklch */ color: oklch(39.0% 0.158 295.6);
Tailwind
colors: {
  custom: {
    50: '#8665b0',
    500: '#4f288e',
    950: '#000000',
  },
}
SCSS
$custom: #4f288e;
$custom-light: #8665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288e",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 262.941,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.15836,
    "h": 295.6
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#4F288E
secondary
#94B75B
accent
#DF48A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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