#4F3397#4F3397

#4F3397 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.3% C 0.155 H 290.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4F3397
RGBrgb(79, 51, 151)
HSLhsl(257, 50%, 40%)
HSVhsv(257, 66%, 59%)
CMYKcmyk(47.7%, 66.2%, 0%, 40.8%)
CIE-LABlab(30.07, 37.41, -50.65)
CIE-LCHlch(30.07, 62.97, 306.45°)
OKLaboklab(41.33% 0.0554 -0.145)
OKLCHoklch(41.33% 0.155 290.9)
XYZxyz(9.9926, 6.2639, 29.9547)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3397 #7B9733
analogous
#334997 #4F3397 #813397
triadic
#4F3397 #974F33 #33974F
tetradic
#4F3397 #973349 #7B9733 #339781
square
#4F3397 #973349 #7B9733 #339781
split-complementary
#4F3397 #978133 #499733
monochromatic
#1F143C #372469 #4F3397 #6947C1 #8E74D0

Accessibility & contrast

On white

9.32
#4F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F3397
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3397#FFFFFF#000000##FFFFFF
##4F33971.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#394B60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f3397;
/* rgb */ color: rgb(79, 51, 151);
/* oklch */ color: oklch(41.3% 0.155 290.9);
Tailwind
colors: {
  custom: {
    50: '#876cb6',
    500: '#4f3397',
    950: '#000000',
  },
}
SCSS
$custom: #4f3397;
$custom-light: #876cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3397",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 256.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.15519,
    "h": 290.9
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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