#4F3396#4F3396

#4F3396 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.154 H 291.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4F3396
RGBrgb(79, 51, 150)
HSLhsl(257, 49%, 39%)
HSVhsv(257, 66%, 59%)
CMYKcmyk(47.3%, 66%, 0%, 41.2%)
CIE-LABlab(29.99, 37.12, -50.16)
CIE-LCHlch(29.99, 62.40, 306.50°)
OKLaboklab(41.24% 0.0555 -0.1435)
OKLCHoklch(41.24% 0.154 291.1)
XYZxyz(9.9118, 6.2316, 29.5288)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3396 #7A9633
analogous
#334896 #4F3396 #813396
triadic
#4F3396 #964F33 #33964F
tetradic
#4F3396 #963348 #7A9633 #339681
square
#4F3396 #963348 #7A9633 #339681
split-complementary
#4F3396 #968133 #489633
monochromatic
#1F143B #372368 #4F3396 #6946C0 #8E74D0

Accessibility & contrast

On white

9.35
#4F3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3396
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3396#FFFFFF#000000##FFFFFF
##4F33961.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#394B60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f3396;
/* rgb */ color: rgb(79, 51, 150);
/* oklch */ color: oklch(41.2% 0.154 291.1);
Tailwind
colors: {
  custom: {
    50: '#866cb6',
    500: '#4f3396',
    950: '#000000',
  },
}
SCSS
$custom: #4f3396;
$custom-light: #866cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3396",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 256.97,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41244,
    "c": 0.1539,
    "h": 291.1
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#4F3396
secondary
#A3B86D
accent
#D94FB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F3396

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

Preview Lab → · Contrast checker → · Palette generator →

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