#4F339F#4F339F

#4F339F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.165 H 289.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4F339F
RGBrgb(79, 51, 159)
HSLhsl(256, 51%, 41%)
HSVhsv(256, 68%, 62%)
CMYKcmyk(50.3%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.72, 39.79, -54.46)
CIE-LCHlch(30.72, 67.44, 306.15°)
OKLaboklab(42% 0.0543 -0.1562)
OKLCHoklch(42% 0.165 289.2)
XYZxyz(10.6645, 6.5327, 33.4932)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F339F #839F33
analogous
#334D9F #4F339F #85339F
triadic
#4F339F #9F4F33 #339F4F
tetradic
#4F339F #9F334D #839F33 #339F85
square
#4F339F #9F334D #839F33 #339F85
split-complementary
#4F339F #9F8533 #4D9F33
monochromatic
#211542 #382471 #4F339F #6A4AC5 #9079D4

Accessibility & contrast

On white

9.10
#4F339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F339F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F339F#FFFFFF#000000##FFFFFF
##4F339F1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#334E64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f339f;
/* rgb */ color: rgb(79, 51, 159);
/* oklch */ color: oklch(42.0% 0.165 289.2);
Tailwind
colors: {
  custom: {
    50: '#886dbc',
    500: '#4f339f',
    950: '#000000',
  },
}
SCSS
$custom: #4f339f;
$custom-light: #886dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f339f",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 255.556,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.16534,
    "h": 289.2
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#4F339F
secondary
#A9BC71
accent
#DB4DB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F339F

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

Preview Lab → · Contrast checker → · Palette generator →

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