#4A31CF#4A31CF

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

Color values

HEX#4A31CF
RGBrgb(74, 49, 207)
HSLhsl(249, 62%, 50%)
HSVhsv(249, 76%, 81%)
CMYKcmyk(64.3%, 76.3%, 0%, 18.8%)
CIE-LABlab(34.31, 54.45, -77.05)
CIE-LCHlch(34.31, 94.34, 305.25°)
OKLaboklab(45.78% 0.0386 -0.2224)
OKLCHoklch(45.78% 0.226 279.8)
XYZxyz(15.1813, 8.1563, 59.7937)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31CF #B6CF31
analogous
#3167CF #4A31CF #9931CF
triadic
#4A31CF #CF4A31 #31CF4A
tetradic
#4A31CF #CF3167 #B6CF31 #31CF99
square
#4A31CF #CF3167 #B6CF31 #31CF99
split-complementary
#4A31CF #CF9931 #67CF31
monochromatic
#26196C #38259E #4A31CF #7663DB #A194E6

Accessibility & contrast

On white

7.98
#4A31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4A31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31CF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31CF#FFFFFF#000000##FFFFFF
##4A31CF1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.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: #4a31cf;
/* rgb */ color: rgb(74, 49, 207);
/* oklch */ color: oklch(45.8% 0.226 279.8);
Tailwind
colors: {
  custom: {
    50: '#8d6ddf',
    500: '#4a31cf',
    950: '#000000',
  },
}
SCSS
$custom: #4a31cf;
$custom-light: #8d6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31cf",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 249.494,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.22575,
    "h": 279.8
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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