#4F31B7#4F31B7

#4F31B7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.197 H 285.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4F31B7
RGBrgb(79, 49, 183)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(56.8%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.43, 47.99, -66.04)
CIE-LCHlch(32.43, 81.64, 306.00°)
OKLaboklab(43.86% 0.0516 -0.1901)
OKLCHoklch(43.86% 0.197 285.2)
XYZxyz(12.8674, 7.2770, 45.5171)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31B7 #99B731
analogous
#3156B7 #4F31B7 #9231B7
triadic
#4F31B7 #B74F31 #31B74F
tetradic
#4F31B7 #B73156 #99B731 #31B792
square
#4F31B7 #B73156 #99B731 #31B792
split-complementary
#4F31B7 #B79231 #56B731
monochromatic
#251756 #3A2487 #4F31B7 #7054D1 #9884DE

Accessibility & contrast

On white

8.55
#4F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4F31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31B7
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31B7#FFFFFF#000000##FFFFFF
##4F31B71.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#1B5671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f31b7;
/* rgb */ color: rgb(79, 49, 183);
/* oklch */ color: oklch(43.9% 0.197 285.2);
Tailwind
colors: {
  custom: {
    50: '#8c6cce',
    500: '#4f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #4f31b7;
$custom-light: #8c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31b7",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 253.433,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.197,
    "h": 285.2
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#4F31B7
secondary
#B7C87C
accent
#E147BE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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