#4B31BE#4B31BE

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

Color values

HEX#4B31BE
RGBrgb(75, 49, 190)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(60.5%, 74.2%, 0%, 25.5%)
CIE-LABlab(32.72, 49.52, -69.72)
CIE-LCHlch(32.72, 85.51, 305.39°)
OKLaboklab(44.18% 0.0442 -0.201)
OKLCHoklch(44.18% 0.206 282.4)
XYZxyz(13.2913, 7.4093, 49.4350)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31BE #A4BE31
analogous
#315EBE #4B31BE #9231BE
triadic
#4B31BE #BE4B31 #31BE4B
tetradic
#4B31BE #BE315E #A4BE31 #31BE92
square
#4B31BE #BE315E #A4BE31 #31BE92
split-complementary
#4B31BE #BE9231 #5EBE31
monochromatic
#25185D #38248D #4B31BE #6F58D4 #9989E1

Accessibility & contrast

On white

8.46
#4B31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4B31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31BE
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31BE#FFFFFF#000000##FFFFFF
##4B31BE1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C2
Deuteranopia (green-blind)
#0048BB
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4b31be;
/* rgb */ color: rgb(75, 49, 190);
/* oklch */ color: oklch(44.2% 0.206 282.4);
Tailwind
colors: {
  custom: {
    50: '#8b6cd3',
    500: '#4b31be',
    950: '#000000',
  },
}
SCSS
$custom: #4b31be;
$custom-light: #8b6cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31be",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 251.064,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44182,
    "c": 0.20579,
    "h": 282.4
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#4B31BE
secondary
#BDCA80
accent
#E246C5
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4B31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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