#4A31CC#4A31CC

#4A31CC is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.5% C 0.222 H 280.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#4A31CC
RGBrgb(74, 49, 204)
HSLhsl(250, 61%, 50%)
HSVhsv(250, 76%, 80%)
CMYKcmyk(63.7%, 76%, 0%, 20%)
CIE-LABlab(34.01, 53.56, -75.80)
CIE-LCHlch(34.01, 92.81, 305.25°)
OKLaboklab(45.48% 0.0394 -0.2188)
OKLCHoklch(45.48% 0.222 280.2)
XYZxyz(14.8180, 8.0109, 57.8804)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31CC #B3CC31
analogous
#3166CC #4A31CC #9731CC
triadic
#4A31CC #CC4A31 #31CC4A
tetradic
#4A31CC #CC3166 #B3CC31 #31CC97
square
#4A31CC #CC3166 #B3CC31 #31CC97
split-complementary
#4A31CC #CC9731 #66CC31
monochromatic
#261969 #38259B #4A31CC #7461D9 #A092E5

Accessibility & contrast

On white

8.07
#4A31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4A31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31CC
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31CC#FFFFFF#000000##FFFFFF
##4A31CC1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D0
Deuteranopia (green-blind)
#004AC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4a31cc;
/* rgb */ color: rgb(74, 49, 204);
/* oklch */ color: oklch(45.5% 0.222 280.2);
Tailwind
colors: {
  custom: {
    50: '#8d6ddd',
    500: '#4a31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4a31cc;
$custom-light: #8d6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31cc",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 249.677,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45476,
    "c": 0.22229,
    "h": 280.2
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#4A31CC
secondary
#C4D089
accent
#E443CA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4A31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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