#4F31BB#4F31BB

#4F31BB is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.202 H 284.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4F31BB
RGBrgb(79, 49, 187)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 74%, 73%)
CMYKcmyk(57.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.80, 49.16, -67.80)
CIE-LCHlch(32.80, 83.75, 305.95°)
OKLaboklab(44.24% 0.0506 -0.1953)
OKLCHoklch(44.24% 0.202 284.5)
XYZxyz(13.2897, 7.4459, 47.7410)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31BB #9DBB31
analogous
#3158BB #4F31BB #9431BB
triadic
#4F31BB #BB4F31 #31BB4F
tetradic
#4F31BB #BB3158 #9DBB31 #31BB94
square
#4F31BB #BB3158 #9DBB31 #31BB94
split-complementary
#4F31BB #BB9431 #58BB31
monochromatic
#26185A #3B248B #4F31BB #7156D3 #9A87E0

Accessibility & contrast

On white

8.44
#4F31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31BB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31BB#FFFFFF#000000##FFFFFF
##4F31BB1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#145773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f31bb;
/* rgb */ color: rgb(79, 49, 187);
/* oklch */ color: oklch(44.2% 0.202 284.5);
Tailwind
colors: {
  custom: {
    50: '#8c6cd1',
    500: '#4f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #4f31bb;
$custom-light: #8c6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31bb",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 253.043,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.20173,
    "h": 284.5
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#4F31BB
secondary
#B9C97F
accent
#E246C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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