#4F31B8#4F31B8

#4F31B8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.198 H 285.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4F31B8
RGBrgb(79, 49, 184)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.1%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.52, 48.28, -66.49)
CIE-LCHlch(32.52, 82.17, 305.99°)
OKLaboklab(43.96% 0.0513 -0.1914)
OKLCHoklch(43.96% 0.198 285)
XYZxyz(12.9719, 7.3188, 46.0672)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31B8 #9AB831
analogous
#3157B8 #4F31B8 #9231B8
triadic
#4F31B8 #B84F31 #31B84F
tetradic
#4F31B8 #B83157 #9AB831 #31B892
square
#4F31B8 #B83157 #9AB831 #31B892
split-complementary
#4F31B8 #B89231 #57B831
monochromatic
#251757 #3A2488 #4F31B8 #7055D2 #9985DE

Accessibility & contrast

On white

8.52
#4F31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F31B8
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31B8#FFFFFF#000000##FFFFFF
##4F31B81.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#1A5672
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f31b8;
/* rgb */ color: rgb(79, 49, 184);
/* oklch */ color: oklch(44.0% 0.198 285.0);
Tailwind
colors: {
  custom: {
    50: '#8c6cce',
    500: '#4f31b8',
    950: '#000000',
  },
}
SCSS
$custom: #4f31b8;
$custom-light: #8c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31b8",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 253.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.19818,
    "h": 285
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#4F31B8
secondary
#B7C87D
accent
#E147BF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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