#5781E2#5781E2

#5781E2 is a mid, vivid blue. Relative luminance 0.232; OKLCH L 62.0% C 0.154 H 264.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5781E2
RGBrgb(87, 129, 226)
HSLhsl(222, 71%, 61%)
HSVhsv(222, 62%, 89%)
CMYKcmyk(61.5%, 42.9%, 0%, 11.4%)
CIE-LABlab(55.29, 15.20, -53.77)
CIE-LCHlch(55.29, 55.87, 285.78°)
OKLaboklab(61.98% -0.0143 -0.1533)
OKLCHoklch(61.98% 0.154 264.7)
XYZxyz(25.5035, 23.2155, 75.0738)
Luminance0.2322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5781E2 #E2B857
analogous
#57C6E2 #5781E2 #7357E2
triadic
#5781E2 #E25781 #81E257
tetradic
#5781E2 #E257C6 #E2B857 #57E273
square
#5781E2 #E257C6 #E2B857 #57E273
split-complementary
#5781E2 #E27357 #C6E257
monochromatic
#1C45A3 #255BD7 #5781E2 #8BA8EB #BFCFF4

Accessibility & contrast

On white

3.72
#5781E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5781E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5781E2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5781E2#FFFFFF#000000##000000
##5781E21.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#558BE6
Deuteranopia (green-blind)
#407EE0
Tritanopia (blue-blind)
#0097A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5781e2;
/* rgb */ color: rgb(87, 129, 226);
/* oklch */ color: oklch(62.0% 0.154 264.7);
Tailwind
colors: {
  custom: {
    50: '#92a5eb',
    500: '#5781e2',
    950: '#000000',
  },
}
SCSS
$custom: #5781e2;
$custom-light: #92a5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5781e2",
  "rgb": {
    "r": 87,
    "g": 129,
    "b": 226
  },
  "hsl": {
    "h": 221.871,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61976,
    "c": 0.15395,
    "h": 264.7
  },
  "luminance": 0.23218
}

Semantic roles & 50–950 ramp

primary
#5781E2
secondary
#E4D5B0
accent
#9913D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5781E2

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

Preview Lab → · Contrast checker → · Palette generator →

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