#5057CC#5057CC

#5057CC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.178 H 275.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5057CC
RGBrgb(80, 87, 204)
HSLhsl(237, 55%, 56%)
HSVhsv(237, 61%, 80%)
CMYKcmyk(60.8%, 57.4%, 0%, 20%)
CIE-LABlab(42.58, 32.55, -61.75)
CIE-LCHlch(42.58, 69.80, 297.79°)
OKLaboklab(51.8% 0.0176 -0.1774)
OKLCHoklch(51.8% 0.178 275.7)
XYZxyz(17.6120, 12.8801, 58.6730)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5057CC #CCC550
analogous
#5095CC #5057CC #8750CC
triadic
#5057CC #CC5057 #57CC50
tetradic
#5057CC #CC5095 #CCC550 #50CC87
square
#5057CC #CC5095 #CCC550 #50CC87
split-complementary
#5057CC #CC8750 #95CC50
monochromatic
#24297D #3239AD #5057CC #7F84DA #AFB2E8

Accessibility & contrast

On white

5.87
#5057CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5057CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5057CC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5057CC#FFFFFF#000000##FFFFFF
##5057CC1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5057cc;
/* rgb */ color: rgb(80, 87, 204);
/* oklch */ color: oklch(51.8% 0.178 275.7);
Tailwind
colors: {
  custom: {
    50: '#8d86dc',
    500: '#5057cc',
    950: '#000000',
  },
}
SCSS
$custom: #5057cc;
$custom-light: #8d86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5057cc",
  "rgb": {
    "r": 80,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 236.613,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51796,
    "c": 0.17827,
    "h": 275.7
  },
  "luminance": 0.12881
}

Semantic roles & 50–950 ramp

primary
#5057CC
secondary
#D6D3A2
accent
#D64ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5057CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5057CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva