#5C81EC#5C81EC

#5C81EC is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.9% C 0.166 H 267.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5C81EC
RGBrgb(92, 129, 236)
HSLhsl(225, 79%, 64%)
HSVhsv(225, 61%, 93%)
CMYKcmyk(61%, 45.3%, 0%, 7.5%)
CIE-LABlab(56.12, 19.44, -58.02)
CIE-LCHlch(56.12, 61.19, 288.53°)
OKLaboklab(62.86% -0.0081 -0.1657)
OKLCHoklch(62.86% 0.166 267.2)
XYZxyz(27.3990, 24.0296, 82.5349)
Luminance0.2403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C81EC #ECC75C
analogous
#5CC9EC #5C81EC #7F5CEC
triadic
#5C81EC #EC5C81 #81EC5C
tetradic
#5C81EC #EC5CC9 #ECC75C #5CEC7F
square
#5C81EC #EC5CC9 #ECC75C #5CEC7F
split-complementary
#5C81EC #EC7F5C #C9EC5C
monochromatic
#153FB8 #2557E6 #5C81EC #93ABF2 #CAD6F9

Accessibility & contrast

On white

3.62
#5C81EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5C81EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C81EC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C81EC#FFFFFF#000000##000000
##5C81EC1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DF0
Deuteranopia (green-blind)
#3680EA
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5c81ec;
/* rgb */ color: rgb(92, 129, 236);
/* oklch */ color: oklch(62.9% 0.166 267.2);
Tailwind
colors: {
  custom: {
    50: '#96a5f3',
    500: '#5c81ec',
    950: '#000000',
  },
}
SCSS
$custom: #5c81ec;
$custom-light: #96a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c81ec",
  "rgb": {
    "r": 92,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 224.583,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62861,
    "c": 0.16588,
    "h": 267.2
  },
  "luminance": 0.24032
}

Semantic roles & 50–950 ramp

primary
#5C81EC
secondary
#EBDEB9
accent
#A60ADB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5C81EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5C81EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva