#4F81BA#4F81BA

#4F81BA is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 59.3% C 0.103 H 252.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4F81BA
RGBrgb(79, 129, 186)
HSLhsl(212, 44%, 52%)
HSVhsv(212, 58%, 73%)
CMYKcmyk(57.5%, 30.6%, 0%, 27.1%)
CIE-LABlab(52.85, 0.32, -35.01)
CIE-LCHlch(52.85, 35.01, 270.52°)
OKLaboklab(59.3% -0.0306 -0.0986)
OKLCHoklch(59.3% 0.103 252.8)
XYZxyz(19.9345, 20.9062, 49.4297)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F81BA #BA884F
analogous
#4FB6BA #4F81BA #534FBA
triadic
#4F81BA #BA4F81 #81BA4F
tetradic
#4F81BA #BA4FB6 #BA884F #4FBA53
square
#4F81BA #BA4FB6 #BA884F #4FBA53
split-complementary
#4F81BA #BA534F #B6BA4F
monochromatic
#284566 #396392 #4F81BA #7BA0CB #A7C0DC

Accessibility & contrast

On white

4.05
#4F81BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#4F81BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F81BA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F81BA#FFFFFF#000000##000000
##4F81BA1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BC
Deuteranopia (green-blind)
#5B79B9
Tritanopia (blue-blind)
#008E95
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4f81ba;
/* rgb */ color: rgb(79, 129, 186);
/* oklch */ color: oklch(59.3% 0.103 252.8);
Tailwind
colors: {
  custom: {
    50: '#88a5cf',
    500: '#4f81ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f81ba;
$custom-light: #88a5cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f81ba",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 186
  },
  "hsl": {
    "h": 211.963,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59299,
    "c": 0.10326,
    "h": 252.8
  },
  "luminance": 0.20908
}

Semantic roles & 50–950 ramp

primary
#4F81BA
secondary
#CAB49B
accent
#9854D3
background
#F8FAFC
surface
#F0F4F9
border
#CBCED2
text
#0C0F13
muted
#7D7F82

Preview Lab

Preview with #4F81BA

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

Preview Lab → · Contrast checker → · Palette generator →

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