#4F81CF#4F81CF

#4F81CF is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.4% C 0.131 H 259.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#4F81CF
RGBrgb(79, 129, 207)
HSLhsl(217, 57%, 56%)
HSVhsv(217, 62%, 81%)
CMYKcmyk(61.8%, 37.7%, 0%, 18.8%)
CIE-LABlab(53.88, 7.31, -45.34)
CIE-LCHlch(53.88, 45.92, 279.16°)
OKLaboklab(60.45% -0.0251 -0.1287)
OKLCHoklch(60.45% 0.131 259)
XYZxyz(22.3332, 21.8657, 62.0630)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81CF #CF9D4F
analogous
#4FC1CF #4F81CF #5D4FCF
triadic
#4F81CF #CF4F81 #81CF4F
tetradic
#4F81CF #CF4FC1 #CF9D4F #4FCF5D
square
#4F81CF #CF4FC1 #CF9D4F #4FCF5D
split-complementary
#4F81CF #CF5D4F #C1CF4F
monochromatic
#234881 #3062B1 #4F81CF #7FA3DC #AFC6E9

Accessibility & contrast

On white

3.91
#4F81CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#4F81CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81CF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81CF#FFFFFF#000000##000000
##4F81CF1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D2
Deuteranopia (green-blind)
#4E7BCD
Tritanopia (blue-blind)
#00939E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #4f81cf;
/* rgb */ color: rgb(79, 129, 207);
/* oklch */ color: oklch(60.4% 0.131 259.0);
Tailwind
colors: {
  custom: {
    50: '#8ba5de',
    500: '#4f81cf',
    950: '#000000',
  },
}
SCSS
$custom: #4f81cf;
$custom-light: #8ba5de;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81cf",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 207
  },
  "hsl": {
    "h": 216.563,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60449,
    "c": 0.13114,
    "h": 259
  },
  "luminance": 0.21868
}

Semantic roles & 50–950 ramp

primary
#4F81CF
secondary
#D7C3A2
accent
#A547E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #4F81CF

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

Preview Lab → · Contrast checker → · Palette generator →

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