#5154FF#5154FF

#5154FF is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.6% C 0.246 H 274.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5154FF
RGBrgb(81, 84, 255)
HSLhsl(239, 100%, 66%)
HSVhsv(239, 68%, 100%)
CMYKcmyk(68.2%, 67.1%, 0%, 0%)
CIE-LABlab(46.05, 51.21, -84.95)
CIE-LCHlch(46.05, 99.19, 301.08°)
OKLaboklab(55.62% 0.0179 -0.2455)
OKLCHoklch(55.62% 0.246 274.2)
XYZxyz(24.6077, 15.3077, 96.2462)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154FF #FFFC51
analogous
#51ABFF #5154FF #A551FF
triadic
#5154FF #FF5154 #54FF51
tetradic
#5154FF #FF51AB #FFFC51 #51FFA5
square
#5154FF #FF51AB #FFFC51 #51FFA5
split-complementary
#5154FF #FFA551 #ABFF51
monochromatic
#0004D6 #1418FF #5154FF #8E90FF #CBCCFF

Accessibility & contrast

On white

5.17
#5154FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5154FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154FF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154FF#FFFFFF#000000##FFFFFF
##5154FF1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#0065FC
Tritanopia (blue-blind)
#0082A3
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5154ff;
/* rgb */ color: rgb(81, 84, 255);
/* oklch */ color: oklch(55.6% 0.246 274.2);
Tailwind
colors: {
  custom: {
    50: '#9785ff',
    500: '#5154ff',
    950: '#000000',
  },
}
SCSS
$custom: #5154ff;
$custom-light: #9785ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5154ff",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 255
  },
  "hsl": {
    "h": 238.966,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.55621,
    "c": 0.24613,
    "h": 274.2
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#5154FF
secondary
#F3F2B9
accent
#E200E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5154FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5154FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva