#5056EF#5056EF

#5056EF is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.225 H 274.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5056EF
RGBrgb(80, 86, 239)
HSLhsl(238, 83%, 63%)
HSVhsv(238, 67%, 94%)
CMYKcmyk(66.5%, 64%, 0%, 6.3%)
CIE-LABlab(45.07, 44.75, -77.62)
CIE-LCHlch(45.07, 89.59, 299.96°)
OKLaboklab(54.47% 0.0171 -0.224)
OKLCHoklch(54.47% 0.225 274.4)
XYZxyz(22.2109, 14.5910, 83.2905)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5056EF #EFE950
analogous
#50A5EF #5056EF #9A50EF
triadic
#5056EF #EF5056 #56EF50
tetradic
#5056EF #EF50A5 #EFE950 #50EF9A
square
#5056EF #EF50A5 #EFE950 #50EF9A
split-complementary
#5056EF #EF9A50 #A5EF50
monochromatic
#1017B4 #1820EA #5056EF #888CF4 #C0C2F9

Accessibility & contrast

On white

5.36
#5056EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5056EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5056EF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5056EF#FFFFFF#000000##FFFFFF
##5056EF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0063EC
Tritanopia (blue-blind)
#007E9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5056ef;
/* rgb */ color: rgb(80, 86, 239);
/* oklch */ color: oklch(54.5% 0.225 274.4);
Tailwind
colors: {
  custom: {
    50: '#9386f5',
    500: '#5056ef',
    950: '#000000',
  },
}
SCSS
$custom: #5056ef;
$custom-light: #9386f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5056ef",
  "rgb": {
    "r": 80,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 237.736,
    "s": 83.246,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54475,
    "c": 0.22468,
    "h": 274.4
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#5056EF
secondary
#EAE8B0
accent
#D706E0
background
#F9F8FF
surface
#F2EFFF
border
#CCCAD7
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5056EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5056EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva