#5781BD#5781BD

#5781BD is a mid, moderate blue. Relative luminance 0.214; OKLCH L 59.9% C 0.103 H 257.3°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5781BD
RGBrgb(87, 129, 189)
HSLhsl(215, 44%, 54%)
HSVhsv(215, 54%, 74%)
CMYKcmyk(54%, 31.7%, 0%, 25.9%)
CIE-LABlab(53.38, 3.03, -35.86)
CIE-LCHlch(53.38, 35.98, 274.82°)
OKLaboklab(59.87% -0.0227 -0.101)
OKLCHoklch(59.87% 0.103 257.3)
XYZxyz(20.9629, 21.3992, 51.1600)
Luminance0.2140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5781BD #BD9357
analogous
#57B4BD #5781BD #6057BD
triadic
#5781BD #BD5781 #81BD57
tetradic
#5781BD #BD57B4 #BD9357 #57BD60
square
#5781BD #BD57B4 #BD9357 #57BD60
split-complementary
#5781BD #BD6057 #B4BD57
monochromatic
#2B476E #3D639A #5781BD #83A2CE #AFC3E0

Accessibility & contrast

On white

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

On black

5.28
#5781BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5781BD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5781BD#FFFFFF#000000##000000
##5781BD1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6985C0
Deuteranopia (green-blind)
#5C7BBC
Tritanopia (blue-blind)
#1C8E96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5781bd;
/* rgb */ color: rgb(87, 129, 189);
/* oklch */ color: oklch(59.9% 0.103 257.3);
Tailwind
colors: {
  custom: {
    50: '#8da5d1',
    500: '#5781bd',
    950: '#000000',
  },
}
SCSS
$custom: #5781bd;
$custom-light: #8da5d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5781bd",
  "rgb": {
    "r": 87,
    "g": 129,
    "b": 189
  },
  "hsl": {
    "h": 215.294,
    "s": 43.59,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59873,
    "c": 0.10348,
    "h": 257.3
  },
  "luminance": 0.21401
}

Semantic roles & 50–950 ramp

primary
#5781BD
secondary
#CEBCA2
accent
#9F54D3
background
#F9FAFC
surface
#F1F4F9
border
#CBCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5781BD

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

Preview Lab → · Contrast checker → · Palette generator →

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