#4F81CE#4F81CE

#4F81CE is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.4% C 0.130 H 258.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#4F81CE
RGBrgb(79, 129, 206)
HSLhsl(216, 56%, 56%)
HSVhsv(216, 62%, 81%)
CMYKcmyk(61.7%, 37.4%, 0%, 19.2%)
CIE-LABlab(53.83, 6.97, -44.85)
CIE-LCHlch(53.83, 45.39, 278.84°)
OKLaboklab(60.39% -0.0253 -0.1273)
OKLCHoklch(60.39% 0.13 258.8)
XYZxyz(22.2113, 21.8170, 61.4211)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81CE #CE9C4F
analogous
#4FC0CE #4F81CE #5C4FCE
triadic
#4F81CE #CE4F81 #81CE4F
tetradic
#4F81CE #CE4FC0 #CE9C4F #4FCE5C
square
#4F81CE #CE4FC0 #CE9C4F #4FCE5C
split-complementary
#4F81CE #CE5C4F #C0CE4F
monochromatic
#23487F #3162AF #4F81CE #7FA3DB #AFC6E9

Accessibility & contrast

On white

3.92
#4F81CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#4F81CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81CE
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81CE#FFFFFF#000000##000000
##4F81CE1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6087D1
Deuteranopia (green-blind)
#4E7BCC
Tritanopia (blue-blind)
#00929E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #4f81ce;
/* rgb */ color: rgb(79, 129, 206);
/* oklch */ color: oklch(60.4% 0.130 258.8);
Tailwind
colors: {
  custom: {
    50: '#8ba5dd',
    500: '#4f81ce',
    950: '#000000',
  },
}
SCSS
$custom: #4f81ce;
$custom-light: #8ba5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81ce",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 206
  },
  "hsl": {
    "h": 216.378,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60392,
    "c": 0.12979,
    "h": 258.8
  },
  "luminance": 0.21819
}

Semantic roles & 50–950 ramp

primary
#4F81CE
secondary
#D7C2A2
accent
#A448E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #4F81CE

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

Preview Lab → · Contrast checker → · Palette generator →

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