#4F31BD#4F31BD

#4F31BD is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.204 H 284.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4F31BD
RGBrgb(79, 49, 189)
HSLhsl(253, 59%, 47%)
HSVhsv(253, 74%, 74%)
CMYKcmyk(58.2%, 74.1%, 0%, 25.9%)
CIE-LABlab(32.99, 49.75, -68.67)
CIE-LCHlch(32.99, 84.80, 305.92°)
OKLaboklab(44.43% 0.0502 -0.1978)
OKLCHoklch(44.43% 0.204 284.2)
XYZxyz(13.5053, 7.5322, 48.8764)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31BD #9FBD31
analogous
#3159BD #4F31BD #9531BD
triadic
#4F31BD #BD4F31 #31BD4F
tetradic
#4F31BD #BD3159 #9FBD31 #31BD95
square
#4F31BD #BD3159 #9FBD31 #31BD95
split-complementary
#4F31BD #BD9531 #59BD31
monochromatic
#26185C #3B248C #4F31BD #7258D4 #9B88E0

Accessibility & contrast

On white

8.38
#4F31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4F31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31BD
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31BD#FFFFFF#000000##FFFFFF
##4F31BD1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#0F5874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f31bd;
/* rgb */ color: rgb(79, 49, 189);
/* oklch */ color: oklch(44.4% 0.204 284.2);
Tailwind
colors: {
  custom: {
    50: '#8d6dd2',
    500: '#4f31bd',
    950: '#000000',
  },
}
SCSS
$custom: #4f31bd;
$custom-light: #8d6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31bd",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 252.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.20408,
    "h": 284.2
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#4F31BD
secondary
#BACA80
accent
#E246C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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