#4F31AF#4F31AF

#4F31AF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.187 H 286.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4F31AF
RGBrgb(79, 49, 175)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 69%)
CMYKcmyk(54.9%, 72%, 0%, 31.4%)
CIE-LABlab(31.70, 45.63, -62.48)
CIE-LCHlch(31.70, 77.37, 306.14°)
OKLaboklab(43.13% 0.0533 -0.1797)
OKLCHoklch(43.13% 0.187 286.5)
XYZxyz(12.0583, 6.9534, 41.2559)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31AF #91AF31
analogous
#3152AF #4F31AF #8E31AF
triadic
#4F31AF #AF4F31 #31AF4F
tetradic
#4F31AF #AF3152 #91AF31 #31AF8E
square
#4F31AF #AF3152 #91AF31 #31AF8E
split-complementary
#4F31AF #AF8E31 #52AF31
monochromatic
#24164F #39247F #4F31AF #6D4FCE #957FDB

Accessibility & contrast

On white

8.78
#4F31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4F31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31AF
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31AF#FFFFFF#000000##FFFFFF
##4F31AF1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#26536D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f31af;
/* rgb */ color: rgb(79, 49, 175);
/* oklch */ color: oklch(43.1% 0.187 286.5);
Tailwind
colors: {
  custom: {
    50: '#8a6cc8',
    500: '#4f31af',
    950: '#000000',
  },
}
SCSS
$custom: #4f31af;
$custom-light: #8a6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31af",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 254.286,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43126,
    "c": 0.18743,
    "h": 286.5
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#4F31AF
secondary
#B2C478
accent
#E048BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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