#4F31B3#4F31B3

#4F31B3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.192 H 285.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4F31B3
RGBrgb(79, 49, 179)
HSLhsl(254, 57%, 45%)
HSVhsv(254, 73%, 70%)
CMYKcmyk(55.9%, 72.6%, 0%, 29.8%)
CIE-LABlab(32.06, 46.81, -64.27)
CIE-LCHlch(32.06, 79.51, 306.07°)
OKLaboklab(43.49% 0.0525 -0.1849)
OKLCHoklch(43.49% 0.192 285.8)
XYZxyz(12.4570, 7.1129, 43.3556)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31B3 #95B331
analogous
#3154B3 #4F31B3 #9031B3
triadic
#4F31B3 #B34F31 #31B34F
tetradic
#4F31B3 #B33154 #95B331 #31B390
square
#4F31B3 #B33154 #95B331 #31B390
split-complementary
#4F31B3 #B39031 #54B331
monochromatic
#251753 #3A2483 #4F31B3 #6F52D0 #9782DD

Accessibility & contrast

On white

8.67
#4F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4F31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31B3
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31B3#FFFFFF#000000##FFFFFF
##4F31B31.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#21546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f31b3;
/* rgb */ color: rgb(79, 49, 179);
/* oklch */ color: oklch(43.5% 0.192 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ccb',
    500: '#4f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4f31b3;
$custom-light: #8b6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31b3",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 253.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43494,
    "c": 0.19223,
    "h": 285.8
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#4F31B3
secondary
#B4C67A
accent
#E048BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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