#4F31B2#4F31B2

#4F31B2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.191 H 286.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4F31B2
RGBrgb(79, 49, 178)
HSLhsl(254, 57%, 45%)
HSVhsv(254, 72%, 70%)
CMYKcmyk(55.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.97, 46.52, -63.83)
CIE-LCHlch(31.97, 78.98, 306.08°)
OKLaboklab(43.4% 0.0527 -0.1836)
OKLCHoklch(43.4% 0.191 286)
XYZxyz(12.3562, 7.0726, 42.8249)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31B2 #94B231
analogous
#3154B2 #4F31B2 #8F31B2
triadic
#4F31B2 #B24F31 #31B24F
tetradic
#4F31B2 #B23154 #94B231 #31B28F
square
#4F31B2 #B23154 #94B231 #31B28F
split-complementary
#4F31B2 #B28F31 #54B231
monochromatic
#241752 #3A2482 #4F31B2 #6E51CF #9681DC

Accessibility & contrast

On white

8.70
#4F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4F31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31B2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31B2#FFFFFF#000000##FFFFFF
##4F31B21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#22546E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f31b2;
/* rgb */ color: rgb(79, 49, 178);
/* oklch */ color: oklch(43.4% 0.191 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b6cca',
    500: '#4f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f31b2;
$custom-light: #8b6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31b2",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 253.953,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.19104,
    "h": 286
  },
  "luminance": 0.07073
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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