#4B31BF#4B31BF

#4B31BF is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.3% C 0.207 H 282.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4B31BF
RGBrgb(75, 49, 191)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(60.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(32.82, 49.82, -70.15)
CIE-LCHlch(32.82, 86.04, 305.38°)
OKLaboklab(44.28% 0.044 -0.2023)
OKLCHoklch(44.28% 0.207 282.3)
XYZxyz(13.4010, 7.4531, 50.0125)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31BF #A5BF31
analogous
#315EBF #4B31BF #9231BF
triadic
#4B31BF #BF4B31 #31BF4B
tetradic
#4B31BF #BF315E #A5BF31 #31BF92
square
#4B31BF #BF315E #A5BF31 #31BF92
split-complementary
#4B31BF #BF9231 #5EBF31
monochromatic
#25185E #38258E #4B31BF #6F59D4 #9A8AE1

Accessibility & contrast

On white

8.43
#4B31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B31BF
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31BF#FFFFFF#000000##FFFFFF
##4B31BF1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4b31bf;
/* rgb */ color: rgb(75, 49, 191);
/* oklch */ color: oklch(44.3% 0.207 282.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cd4',
    500: '#4b31bf',
    950: '#000000',
  },
}
SCSS
$custom: #4b31bf;
$custom-light: #8b6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31bf",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 250.986,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44278,
    "c": 0.20697,
    "h": 282.3
  },
  "luminance": 0.07454
}

Semantic roles & 50–950 ramp

primary
#4B31BF
secondary
#BDCB81
accent
#E245C6
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4B31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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