#4C81CC#4C81CC

#4C81CC is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.1% C 0.128 H 257.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#4C81CC
RGBrgb(76, 129, 204)
HSLhsl(215, 56%, 55%)
HSVhsv(215, 63%, 80%)
CMYKcmyk(62.7%, 36.8%, 0%, 20%)
CIE-LABlab(53.59, 5.74, -44.10)
CIE-LCHlch(53.59, 44.48, 277.41°)
OKLaboklab(60.14% -0.0283 -0.1252)
OKLCHoklch(60.14% 0.128 257.3)
XYZxyz(21.7259, 21.5946, 60.1383)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C81CC #CC974C
analogous
#4CC1CC #4C81CC #574CCC
triadic
#4C81CC #CC4C81 #81CC4C
tetradic
#4C81CC #CC4CC1 #CC974C #4CCC57
square
#4C81CC #CC4CC1 #CC974C #4CCC57
split-complementary
#4C81CC #CC574C #C1CC4C
monochromatic
#23477B #3163AA #4C81CC #7CA3DA #ABC4E7

Accessibility & contrast

On white

3.95
#4C81CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#4C81CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C81CC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C81CC#FFFFFF#000000##000000
##4C81CC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187CF
Deuteranopia (green-blind)
#4F7BCA
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #4c81cc;
/* rgb */ color: rgb(76, 129, 204);
/* oklch */ color: oklch(60.1% 0.128 257.3);
Tailwind
colors: {
  custom: {
    50: '#89a5dc',
    500: '#4c81cc',
    950: '#000000',
  },
}
SCSS
$custom: #4c81cc;
$custom-light: #89a5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c81cc",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 204
  },
  "hsl": {
    "h": 215.156,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60136,
    "c": 0.12831,
    "h": 257.3
  },
  "luminance": 0.21597
}

Semantic roles & 50–950 ramp

primary
#4C81CC
secondary
#D5BF9F
accent
#A149DF
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0D0F15
muted
#7D7F83

Preview Lab

Preview with #4C81CC

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

Preview Lab → · Contrast checker → · Palette generator →

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