#4731CF#4731CF

#4731CF is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.5% C 0.226 H 278.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4731CF
RGBrgb(71, 49, 207)
HSLhsl(248, 62%, 50%)
HSVhsv(248, 76%, 81%)
CMYKcmyk(65.7%, 76.3%, 0%, 18.8%)
CIE-LABlab(34.07, 54.13, -77.45)
CIE-LCHlch(34.07, 94.49, 304.95°)
OKLaboklab(45.55% 0.0345 -0.2237)
OKLCHoklch(45.55% 0.226 278.8)
XYZxyz(14.9557, 8.0400, 59.7831)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731CF #B9CF31
analogous
#316ACF #4731CF #9631CF
triadic
#4731CF #CF4731 #31CF47
tetradic
#4731CF #CF316A #B9CF31 #31CF96
square
#4731CF #CF316A #B9CF31 #31CF96
split-complementary
#4731CF #CF9631 #6ACF31
monochromatic
#25196C #36259E #4731CF #7363DB #A094E6

Accessibility & contrast

On white

8.05
#4731CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4731CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4731CF
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4731CF#FFFFFF#000000##FFFFFF
##4731CF1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D3
Deuteranopia (green-blind)
#004ACC
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4731cf;
/* rgb */ color: rgb(71, 49, 207);
/* oklch */ color: oklch(45.5% 0.226 278.8);
Tailwind
colors: {
  custom: {
    50: '#8c6ddf',
    500: '#4731cf',
    950: '#000000',
  },
}
SCSS
$custom: #4731cf;
$custom-light: #8c6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4731cf",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 248.354,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45547,
    "c": 0.22632,
    "h": 278.8
  },
  "luminance": 0.08041
}

Semantic roles & 50–950 ramp

primary
#4731CF
secondary
#C7D18B
accent
#E543CF
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4731CF

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

Preview Lab → · Contrast checker → · Palette generator →

#4731CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva