#4F81DC#4F81DC

#4F81DC is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.2% C 0.149 H 261.4°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#4F81DC
RGBrgb(79, 129, 220)
HSLhsl(219, 67%, 59%)
HSVhsv(219, 64%, 86%)
CMYKcmyk(64.1%, 41.4%, 0%, 13.7%)
CIE-LABlab(54.58, 11.74, -51.56)
CIE-LCHlch(54.58, 52.88, 282.83°)
OKLaboklab(61.22% -0.0223 -0.1469)
OKLCHoklch(61.22% 0.149 261.4)
XYZxyz(23.9884, 22.5278, 70.7804)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81DC #DCAA4F
analogous
#4FC8DC #4F81DC #634FDC
triadic
#4F81DC #DC4F81 #81DC4F
tetradic
#4F81DC #DC4FC8 #DCAA4F #4FDC63
square
#4F81DC #DC4FC8 #DCAA4F #4FDC63
split-complementary
#4F81DC #DC634F #C8DC4F
monochromatic
#1D4793 #2760C6 #4F81DC #82A6E6 #B5CAF0

Accessibility & contrast

On white

3.81
#4F81DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#4F81DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81DC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81DC#FFFFFF#000000##000000
##4F81DC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#578AE0
Deuteranopia (green-blind)
#427DDA
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #4f81dc;
/* rgb */ color: rgb(79, 129, 220);
/* oklch */ color: oklch(61.2% 0.149 261.4);
Tailwind
colors: {
  custom: {
    50: '#8da5e7',
    500: '#4f81dc',
    950: '#000000',
  },
}
SCSS
$custom: #4f81dc;
$custom-light: #8da5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81dc",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 218.723,
    "s": 66.825,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61217,
    "c": 0.14863,
    "h": 261.4
  },
  "luminance": 0.2253
}

Semantic roles & 50–950 ramp

primary
#4F81DC
secondary
#DFCCA8
accent
#AD3EEA
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4F81DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4F81DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva