#5781EC#5781EC

#5781EC is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.6% C 0.167 H 265.7°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5781EC
RGBrgb(87, 129, 236)
HSLhsl(223, 80%, 63%)
HSVhsv(223, 63%, 93%)
CMYKcmyk(63.1%, 45.3%, 0%, 7.5%)
CIE-LABlab(55.87, 18.57, -58.43)
CIE-LCHlch(55.87, 61.31, 287.63°)
OKLaboklab(62.6% -0.0126 -0.167)
OKLCHoklch(62.6% 0.167 265.7)
XYZxyz(26.9158, 23.7804, 82.5123)
Luminance0.2378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5781EC #ECC257
analogous
#57CCEC #5781EC #7757EC
triadic
#5781EC #EC5781 #81EC57
tetradic
#5781EC #EC57CC #ECC257 #57EC77
square
#5781EC #EC57CC #ECC257 #57EC77
split-complementary
#5781EC #EC7757 #CCEC57
monochromatic
#1441B4 #2058E6 #5781EC #8EAAF2 #C5D3F8

Accessibility & contrast

On white

3.65
#5781EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#5781EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5781EC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5781EC#FFFFFF#000000##000000
##5781EC1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5781ec;
/* rgb */ color: rgb(87, 129, 236);
/* oklch */ color: oklch(62.6% 0.167 265.7);
Tailwind
colors: {
  custom: {
    50: '#94a5f3',
    500: '#5781ec',
    950: '#000000',
  },
}
SCSS
$custom: #5781ec;
$custom-light: #94a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5781ec",
  "rgb": {
    "r": 87,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 223.087,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62602,
    "c": 0.16747,
    "h": 265.7
  },
  "luminance": 0.23783
}

Semantic roles & 50–950 ramp

primary
#5781EC
secondary
#EADBB5
accent
#A10ADC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5781EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5781EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva