#4751C2#4751C2

#4751C2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.175 H 274.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4751C2
RGBrgb(71, 81, 194)
HSLhsl(235, 50%, 52%)
HSVhsv(235, 63%, 76%)
CMYKcmyk(63.4%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.78, 31.42, -60.53)
CIE-LCHlch(39.78, 68.20, 297.43°)
OKLaboklab(49.33% 0.0129 -0.1741)
OKLCHoklch(49.33% 0.175 274.2)
XYZxyz(15.2754, 11.1182, 52.3695)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4751C2 #C2B847
analogous
#478FC2 #4751C2 #7B47C2
triadic
#4751C2 #C24751 #51C247
tetradic
#4751C2 #C2478F #C2B847 #47C27B
square
#4751C2 #C2478F #C2B847 #47C27B
split-complementary
#4751C2 #C27B47 #8FC247
monochromatic
#24296B #333B99 #4751C2 #757CD1 #A3A8E0

Accessibility & contrast

On white

6.51
#4751C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4751C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4751C2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4751C2#FFFFFF#000000##FFFFFF
##4751C21.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4751c2;
/* rgb */ color: rgb(71, 81, 194);
/* oklch */ color: oklch(49.3% 0.175 274.2);
Tailwind
colors: {
  custom: {
    50: '#8781d5',
    500: '#4751c2',
    950: '#000000',
  },
}
SCSS
$custom: #4751c2;
$custom-light: #8781d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4751c2",
  "rgb": {
    "r": 71,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 235.122,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49329,
    "c": 0.17459,
    "h": 274.2
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#4751C2
secondary
#CDC997
accent
#CE4EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4751C2

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

Preview Lab → · Contrast checker → · Palette generator →

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