#4F81CA#4F81CA

#4F81CA is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.2% C 0.124 H 257.8°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#4F81CA
RGBrgb(79, 129, 202)
HSLhsl(216, 54%, 55%)
HSVhsv(216, 61%, 79%)
CMYKcmyk(60.9%, 36.1%, 0%, 20.8%)
CIE-LABlab(53.63, 5.63, -42.91)
CIE-LCHlch(53.63, 43.28, 277.47°)
OKLaboklab(60.17% -0.0263 -0.1216)
OKLCHoklch(60.17% 0.124 257.8)
XYZxyz(21.7316, 21.6251, 58.8945)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81CA #CA984F
analogous
#4FBECA #4F81CA #5B4FCA
triadic
#4F81CA #CA4F81 #81CA4F
tetradic
#4F81CA #CA4FBE #CA984F #4FCA5B
square
#4F81CA #CA4FBE #CA984F #4FCA5B
split-complementary
#4F81CA #CA5B4F #BECA4F
monochromatic
#25477A #3363A9 #4F81CA #7EA3D8 #ADC4E6

Accessibility & contrast

On white

3.94
#4F81CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#4F81CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81CA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81CA#FFFFFF#000000##000000
##4F81CA1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6286CD
Deuteranopia (green-blind)
#517BC8
Tritanopia (blue-blind)
#00929C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #4f81ca;
/* rgb */ color: rgb(79, 129, 202);
/* oklch */ color: oklch(60.2% 0.124 257.8);
Tailwind
colors: {
  custom: {
    50: '#8ba5da',
    500: '#4f81ca',
    950: '#000000',
  },
}
SCSS
$custom: #4f81ca;
$custom-light: #8ba5da;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81ca",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 202
  },
  "hsl": {
    "h": 215.61,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60165,
    "c": 0.12442,
    "h": 257.8
  },
  "luminance": 0.21627
}

Semantic roles & 50–950 ramp

primary
#4F81CA
secondary
#D4BFA1
accent
#A24BDD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #4F81CA

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

Preview Lab → · Contrast checker → · Palette generator →

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