#5054DF#5054DF

#5054DF is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.8% C 0.207 H 275.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5054DF
RGBrgb(80, 84, 223)
HSLhsl(238, 69%, 59%)
HSVhsv(238, 64%, 87%)
CMYKcmyk(64.1%, 62.3%, 0%, 12.5%)
CIE-LABlab(43.32, 40.68, -71.43)
CIE-LCHlch(43.32, 82.20, 299.66°)
OKLaboklab(52.79% 0.0197 -0.2059)
OKLCHoklch(52.79% 0.207 275.5)
XYZxyz(19.7935, 13.3722, 71.3357)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5054DF #DFDB50
analogous
#509BDF #5054DF #9450DF
triadic
#5054DF #DF5054 #54DF50
tetradic
#5054DF #DF509B #DFDB50 #50DF94
square
#5054DF #DF509B #DFDB50 #50DF94
split-complementary
#5054DF #DF9450 #9BDF50
monochromatic
#1C1F99 #252ACC #5054DF #8487E8 #B7B9F2

Accessibility & contrast

On white

5.71
#5054DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5054DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5054DF
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5054DF#FFFFFF#000000##FFFFFF
##5054DF1.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0060DC
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5054df;
/* rgb */ color: rgb(80, 84, 223);
/* oklch */ color: oklch(52.8% 0.207 275.5);
Tailwind
colors: {
  custom: {
    50: '#9184ea',
    500: '#5054df',
    950: '#000000',
  },
}
SCSS
$custom: #5054df;
$custom-light: #9184ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5054df",
  "rgb": {
    "r": 80,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 238.322,
    "s": 69.082,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.20682,
    "h": 275.5
  },
  "luminance": 0.13374
}

Semantic roles & 50–950 ramp

primary
#5054DF
secondary
#E1E0AA
accent
#E73CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5054DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5054DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva