#4B31CF#4B31CF

#4B31CF is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.9% C 0.226 H 280.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4B31CF
RGBrgb(75, 49, 207)
HSLhsl(250, 62%, 50%)
HSVhsv(250, 76%, 81%)
CMYKcmyk(63.8%, 76.3%, 0%, 18.8%)
CIE-LABlab(34.39, 54.56, -76.91)
CIE-LCHlch(34.39, 94.29, 305.35°)
OKLaboklab(45.85% 0.04 -0.222)
OKLCHoklch(45.85% 0.226 280.2)
XYZxyz(15.2589, 8.1963, 59.7973)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31CF #B5CF31
analogous
#3166CF #4B31CF #9A31CF
triadic
#4B31CF #CF4B31 #31CF4B
tetradic
#4B31CF #CF3166 #B5CF31 #31CF9A
square
#4B31CF #CF3166 #B5CF31 #31CF9A
split-complementary
#4B31CF #CF9A31 #66CF31
monochromatic
#27196C #39259E #4B31CF #7663DB #A294E6

Accessibility & contrast

On white

7.96
#4B31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4B31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31CF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31CF#FFFFFF#000000##FFFFFF
##4B31CF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4b31cf;
/* rgb */ color: rgb(75, 49, 207);
/* oklch */ color: oklch(45.9% 0.226 280.2);
Tailwind
colors: {
  custom: {
    50: '#8e6ddf',
    500: '#4b31cf',
    950: '#000000',
  },
}
SCSS
$custom: #4b31cf;
$custom-light: #8e6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31cf",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 249.873,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.22557,
    "h": 280.2
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#4B31CF
secondary
#C6D18B
accent
#E543CA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4B31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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