#4C31BF#4C31BF

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

Color values

HEX#4C31BF
RGBrgb(76, 49, 191)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(60.2%, 74.3%, 0%, 25.1%)
CIE-LABlab(32.91, 49.95, -70.00)
CIE-LCHlch(32.91, 85.99, 305.51°)
OKLaboklab(44.36% 0.0454 -0.2018)
OKLCHoklch(44.36% 0.207 282.7)
XYZxyz(13.4799, 7.4938, 50.0162)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31BF #A4BF31
analogous
#315DBF #4C31BF #9331BF
triadic
#4C31BF #BF4C31 #31BF4C
tetradic
#4C31BF #BF315D #A4BF31 #31BF93
square
#4C31BF #BF315D #A4BF31 #31BF93
split-complementary
#4C31BF #BF9331 #5DBF31
monochromatic
#25185E #39258E #4C31BF #7059D4 #9A8AE1

Accessibility & contrast

On white

8.40
#4C31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4C31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31BF
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31BF#FFFFFF#000000##FFFFFF
##4C31BF1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.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: #4c31bf;
/* rgb */ color: rgb(76, 49, 191);
/* oklch */ color: oklch(44.4% 0.207 282.7);
Tailwind
colors: {
  custom: {
    50: '#8b6cd4',
    500: '#4c31bf',
    950: '#000000',
  },
}
SCSS
$custom: #4c31bf;
$custom-light: #8b6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31bf",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 251.408,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44363,
    "c": 0.20683,
    "h": 282.7
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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