#4781DC#4781DC

#4781DC is a mid, vivid blue. Relative luminance 0.222; OKLCH L 60.9% C 0.151 H 259.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#4781DC
RGBrgb(71, 129, 220)
HSLhsl(217, 68%, 57%)
HSVhsv(217, 68%, 86%)
CMYKcmyk(67.7%, 41.4%, 0%, 13.7%)
CIE-LABlab(54.24, 10.43, -52.12)
CIE-LCHlch(54.24, 53.15, 281.32°)
OKLaboklab(60.86% -0.0286 -0.1487)
OKLCHoklch(60.86% 0.151 259.1)
XYZxyz(23.3624, 22.2050, 70.7510)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4781DC #DCA247
analogous
#47CCDC #4781DC #5747DC
triadic
#4781DC #DC4781 #81DC47
tetradic
#4781DC #DC47CC #DCA247 #47DC57
square
#4781DC #DC47CC #DCA247 #47DC57
split-complementary
#4781DC #DC5747 #CCDC47
monochromatic
#1B488E #2562C1 #4781DC #7AA4E6 #AEC7F0

Accessibility & contrast

On white

3.86
#4781DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#4781DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4781DC
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4781DC#FFFFFF#000000##000000
##4781DC1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E0
Deuteranopia (green-blind)
#3E7BDA
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #4781dc;
/* rgb */ color: rgb(71, 129, 220);
/* oklch */ color: oklch(60.9% 0.151 259.1);
Tailwind
colors: {
  custom: {
    50: '#8aa5e7',
    500: '#4781dc',
    950: '#000000',
  },
}
SCSS
$custom: #4781dc;
$custom-light: #8aa5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4781dc",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 216.644,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60862,
    "c": 0.15145,
    "h": 259.1
  },
  "luminance": 0.22207
}

Semantic roles & 50–950 ramp

primary
#4781DC
secondary
#DEC6A1
accent
#A73DEB
background
#F9FAFE
surface
#F1F4FC
border
#CBCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4781DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4781DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva