#4F81D2#4F81D2

#4F81D2 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.6% C 0.135 H 259.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4F81D2
RGBrgb(79, 129, 210)
HSLhsl(217, 59%, 57%)
HSVhsv(217, 62%, 82%)
CMYKcmyk(62.4%, 38.6%, 0%, 17.6%)
CIE-LABlab(54.04, 8.33, -46.78)
CIE-LCHlch(54.04, 47.52, 280.10°)
OKLaboklab(60.62% -0.0244 -0.133)
OKLCHoklch(60.62% 0.135 259.6)
XYZxyz(22.7035, 22.0138, 64.0129)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81D2 #D2A04F
analogous
#4FC3D2 #4F81D2 #5F4FD2
triadic
#4F81D2 #D24F81 #81D24F
tetradic
#4F81D2 #D24FC3 #D2A04F #4FD25F
square
#4F81D2 #D24FC3 #D2A04F #4FD25F
split-complementary
#4F81D2 #D25F4F #C3D24F
monochromatic
#224885 #2E62B5 #4F81D2 #80A4DE #B0C7EB

Accessibility & contrast

On white

3.89
#4F81D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#4F81D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81D2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81D2#FFFFFF#000000##000000
##4F81D21.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E88D5
Deuteranopia (green-blind)
#4B7CD0
Tritanopia (blue-blind)
#00939F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #4f81d2;
/* rgb */ color: rgb(79, 129, 210);
/* oklch */ color: oklch(60.6% 0.135 259.6);
Tailwind
colors: {
  custom: {
    50: '#8ca5e0',
    500: '#4f81d2',
    950: '#000000',
  },
}
SCSS
$custom: #4f81d2;
$custom-light: #8ca5e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81d2",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 210
  },
  "hsl": {
    "h": 217.099,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60623,
    "c": 0.13517,
    "h": 259.6
  },
  "luminance": 0.22016
}

Semantic roles & 50–950 ramp

primary
#4F81D2
secondary
#D9C5A4
accent
#A645E2
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #4F81D2

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

Preview Lab → · Contrast checker → · Palette generator →

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