#5757BF#5757BF

#5757BF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.159 H 279.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5757BF
RGBrgb(87, 87, 191)
HSLhsl(240, 45%, 55%)
HSVhsv(240, 54%, 75%)
CMYKcmyk(54.5%, 54.5%, 0%, 25.1%)
CIE-LABlab(42.16, 29.58, -54.88)
CIE-LCHlch(42.16, 62.34, 298.33°)
OKLaboklab(51.32% 0.0255 -0.157)
OKLCHoklch(51.32% 0.159 279.2)
XYZxyz(16.7397, 12.6032, 50.8307)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5757BF #BFBF57
analogous
#578BBF #5757BF #8B57BF
triadic
#5757BF #BF5757 #57BF57
tetradic
#5757BF #BF578B #BFBF57 #57BF8B
square
#5757BF #BF578B #BFBF57 #57BF8B
split-complementary
#5757BF #BF8B57 #8BBF57
monochromatic
#2B2B71 #3C3C9D #5757BF #8383D0 #B0B0E1

Accessibility & contrast

On white

5.96
#5757BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5757BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5757BF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5757BF#FFFFFF#000000##FFFFFF
##5757BF1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1668C3
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#266F82
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5757bf;
/* rgb */ color: rgb(87, 87, 191);
/* oklch */ color: oklch(51.3% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#8f86d3',
    500: '#5757bf',
    950: '#000000',
  },
}
SCSS
$custom: #5757bf;
$custom-light: #8f86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5757bf",
  "rgb": {
    "r": 87,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 240,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51318,
    "c": 0.15905,
    "h": 279.2
  },
  "luminance": 0.12604
}

Semantic roles & 50–950 ramp

primary
#5757BF
secondary
#CFCFA3
accent
#D553D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5757BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5757BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva