#5154D3#5154D3

#5154D3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.191 H 276.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5154D3
RGBrgb(81, 84, 211)
HSLhsl(239, 60%, 57%)
HSVhsv(239, 62%, 83%)
CMYKcmyk(61.6%, 60.2%, 0%, 17.3%)
CIE-LABlab(42.45, 36.88, -65.99)
CIE-LCHlch(42.45, 75.60, 299.20°)
OKLaboklab(51.88% 0.0214 -0.1899)
OKLCHoklch(51.88% 0.191 276.4)
XYZxyz(18.3177, 12.7917, 63.1191)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154D3 #D3D051
analogous
#5195D3 #5154D3 #8F51D3
triadic
#5154D3 #D35154 #54D351
tetradic
#5154D3 #D35195 #D3D051 #51D38F
square
#5154D3 #D35195 #D3D051 #51D38F
split-complementary
#5154D3 #D38F51 #95D351
monochromatic
#222587 #2F32B8 #5154D3 #8284DF #B3B4EC

Accessibility & contrast

On white

5.90
#5154D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5154D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154D3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154D3#FFFFFF#000000##FFFFFF
##5154D31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5154d3;
/* rgb */ color: rgb(81, 84, 211);
/* oklch */ color: oklch(51.9% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#8f84e1',
    500: '#5154d3',
    950: '#000000',
  },
}
SCSS
$custom: #5154d3;
$custom-light: #8f84e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5154d3",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 238.615,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51878,
    "c": 0.19108,
    "h": 276.4
  },
  "luminance": 0.12793
}

Semantic roles & 50–950 ramp

primary
#5154D3
secondary
#DAD9A6
accent
#DF45E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5154D3

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

Preview Lab → · Contrast checker → · Palette generator →

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