#4F31BE#4F31BE

#4F31BE is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.205 H 284.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4F31BE
RGBrgb(79, 49, 190)
HSLhsl(253, 59%, 47%)
HSVhsv(253, 74%, 75%)
CMYKcmyk(58.4%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.08, 50.04, -69.11)
CIE-LCHlch(33.08, 85.32, 305.91°)
OKLaboklab(44.53% 0.0499 -0.1991)
OKLCHoklch(44.53% 0.205 284.1)
XYZxyz(13.6142, 7.5757, 49.4501)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31BE #A0BE31
analogous
#315ABE #4F31BE #9631BE
triadic
#4F31BE #BE4F31 #31BE4F
tetradic
#4F31BE #BE315A #A0BE31 #31BE96
square
#4F31BE #BE315A #A0BE31 #31BE96
split-complementary
#4F31BE #BE9631 #5ABE31
monochromatic
#27185D #3B248D #4F31BE #7358D4 #9C89E1

Accessibility & contrast

On white

8.35
#4F31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4F31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31BE
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31BE#FFFFFF#000000##FFFFFF
##4F31BE1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#0C5875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f31be;
/* rgb */ color: rgb(79, 49, 190);
/* oklch */ color: oklch(44.5% 0.205 284.1);
Tailwind
colors: {
  custom: {
    50: '#8d6dd3',
    500: '#4f31be',
    950: '#000000',
  },
}
SCSS
$custom: #4f31be;
$custom-light: #8d6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31be",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 252.766,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44526,
    "c": 0.20525,
    "h": 284.1
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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