#4F81DB#4F81DB

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

Color values

HEX#4F81DB
RGBrgb(79, 129, 219)
HSLhsl(219, 66%, 58%)
HSVhsv(219, 64%, 86%)
CMYKcmyk(63.9%, 41.1%, 0%, 14.1%)
CIE-LABlab(54.53, 11.40, -51.08)
CIE-LCHlch(54.53, 52.34, 282.58°)
OKLaboklab(61.16% -0.0225 -0.1456)
OKLCHoklch(61.16% 0.147 261.2)
XYZxyz(23.8564, 22.4750, 70.0850)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81DB #DBA94F
analogous
#4FC7DB #4F81DB #634FDB
triadic
#4F81DB #DB4F81 #81DB4F
tetradic
#4F81DB #DB4FC7 #DBA94F #4FDB63
square
#4F81DB #DB4FC7 #DBA94F #4FDB63
split-complementary
#4F81DB #DB634F #C7DB4F
monochromatic
#1E4792 #2860C5 #4F81DB #82A5E5 #B5CAF0

Accessibility & contrast

On white

3.82
#4F81DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#4F81DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81DB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81DB#FFFFFF#000000##000000
##4F81DB1.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)
#5889DF
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#0096A3
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #4f81db;
/* rgb */ color: rgb(79, 129, 219);
/* oklch */ color: oklch(61.2% 0.147 261.2);
Tailwind
colors: {
  custom: {
    50: '#8da5e6',
    500: '#4f81db',
    950: '#000000',
  },
}
SCSS
$custom: #4f81db;
$custom-light: #8da5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81db",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 219
  },
  "hsl": {
    "h": 218.571,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61157,
    "c": 0.14728,
    "h": 261.2
  },
  "luminance": 0.22477
}

Semantic roles & 50–950 ramp

primary
#4F81DB
secondary
#DFCBA7
accent
#AC3FE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4F81DB

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

Preview Lab → · Contrast checker → · Palette generator →

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