#4751D2#4751D2

#4751D2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.196 H 273.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4751D2
RGBrgb(71, 81, 210)
HSLhsl(236, 61%, 55%)
HSVhsv(236, 66%, 82%)
CMYKcmyk(66.2%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.02, 36.88, -67.77)
CIE-LCHlch(41.02, 77.16, 298.55°)
OKLaboklab(50.63% 0.0126 -0.1954)
OKLCHoklch(50.63% 0.196 273.7)
XYZxyz(17.1700, 11.8761, 62.3477)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4751D2 #D2C847
analogous
#4797D2 #4751D2 #8247D2
triadic
#4751D2 #D24751 #51D247
tetradic
#4751D2 #D24797 #D2C847 #47D282
square
#4751D2 #D24797 #D2C847 #47D282
split-complementary
#4751D2 #D28247 #97D247
monochromatic
#1F267F #2B35B1 #4751D2 #7880DE #A9AEEA

Accessibility & contrast

On white

6.22
#4751D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4751D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4751D2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4751D2#FFFFFF#000000##FFFFFF
##4751D21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4751d2;
/* rgb */ color: rgb(71, 81, 210);
/* oklch */ color: oklch(50.6% 0.196 273.7);
Tailwind
colors: {
  custom: {
    50: '#8a82e1',
    500: '#4751d2',
    950: '#000000',
  },
}
SCSS
$custom: #4751d2;
$custom-light: #8a82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4751d2",
  "rgb": {
    "r": 71,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 235.683,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50633,
    "c": 0.19579,
    "h": 273.7
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#4751D2
secondary
#D8D39D
accent
#D844E4
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4751D2

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

Preview Lab → · Contrast checker → · Palette generator →

#4751D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva