#4781E1#4781E1

#4781E1 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.2% C 0.158 H 259.9°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#4781E1
RGBrgb(71, 129, 225)
HSLhsl(217, 72%, 58%)
HSVhsv(217, 68%, 88%)
CMYKcmyk(68.4%, 42.7%, 0%, 11.8%)
CIE-LABlab(54.53, 12.19, -54.47)
CIE-LCHlch(54.53, 55.82, 282.61°)
OKLaboklab(61.17% -0.0277 -0.1556)
OKLCHoklch(61.17% 0.158 259.9)
XYZxyz(24.0345, 22.4739, 74.2908)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4781E1 #E1A747
analogous
#47CEE1 #4781E1 #5A47E1
triadic
#4781E1 #E14781 #81E147
tetradic
#4781E1 #E147CE #E1A747 #47E15A
square
#4781E1 #E147CE #E1A747 #47E15A
split-complementary
#4781E1 #E15A47 #CEE147
monochromatic
#184795 #2161CA #4781E1 #7CA5EA #B0C9F2

Accessibility & contrast

On white

3.82
#4781E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#4781E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4781E1
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4781E1#FFFFFF#000000##000000
##4781E11.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE5
Deuteranopia (green-blind)
#397CDF
Tritanopia (blue-blind)
#0097A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #4781e1;
/* rgb */ color: rgb(71, 129, 225);
/* oklch */ color: oklch(61.2% 0.158 259.9);
Tailwind
colors: {
  custom: {
    50: '#8ba5eb',
    500: '#4781e1',
    950: '#000000',
  },
}
SCSS
$custom: #4781e1;
$custom-light: #8ba5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4781e1",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 225
  },
  "hsl": {
    "h": 217.403,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61172,
    "c": 0.15808,
    "h": 259.9
  },
  "luminance": 0.22476
}

Semantic roles & 50–950 ramp

primary
#4781E1
secondary
#E1C9A3
accent
#AA39EF
background
#F9FAFE
surface
#F1F4FD
border
#CBCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4781E1

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

Preview Lab → · Contrast checker → · Palette generator →

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