#5781BC#5781BC

#5781BC is a mid, moderate blue. Relative luminance 0.214; OKLCH L 59.8% C 0.102 H 257.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5781BC
RGBrgb(87, 129, 188)
HSLhsl(215, 43%, 54%)
HSVhsv(215, 54%, 74%)
CMYKcmyk(53.7%, 31.4%, 0%, 26.3%)
CIE-LABlab(53.34, 2.71, -35.36)
CIE-LCHlch(53.34, 35.46, 274.38°)
OKLaboklab(59.82% -0.023 -0.0995)
OKLCHoklch(59.82% 0.102 257)
XYZxyz(20.8547, 21.3560, 50.5903)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5781BC #BC9257
analogous
#57B4BC #5781BC #6057BC
triadic
#5781BC #BC5781 #81BC57
tetradic
#5781BC #BC57B4 #BC9257 #57BC60
square
#5781BC #BC57B4 #BC9257 #57BC60
split-complementary
#5781BC #BC6057 #B4BC57
monochromatic
#2C476D #3D6399 #5781BC #83A2CD #AFC3DF

Accessibility & contrast

On white

3.98
#5781BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5781BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5781BC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5781BC#FFFFFF#000000##000000
##5781BC1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6985BF
Deuteranopia (green-blind)
#5D7BBB
Tritanopia (blue-blind)
#1E8E96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5781bc;
/* rgb */ color: rgb(87, 129, 188);
/* oklch */ color: oklch(59.8% 0.102 257.0);
Tailwind
colors: {
  custom: {
    50: '#8da5d0',
    500: '#5781bc',
    950: '#000000',
  },
}
SCSS
$custom: #5781bc;
$custom-light: #8da5d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5781bc",
  "rgb": {
    "r": 87,
    "g": 129,
    "b": 188
  },
  "hsl": {
    "h": 215.05,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59821,
    "c": 0.10212,
    "h": 257
  },
  "luminance": 0.21358
}

Semantic roles & 50–950 ramp

primary
#5781BC
secondary
#CDBBA2
accent
#9E55D3
background
#F9FAFC
surface
#F1F4F9
border
#CBCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5781BC

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

Preview Lab → · Contrast checker → · Palette generator →

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