#5154D2#5154D2

#5154D2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.190 H 276.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5154D2
RGBrgb(81, 84, 210)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 61%, 82%)
CMYKcmyk(61.4%, 60%, 0%, 17.6%)
CIE-LABlab(42.37, 36.55, -65.54)
CIE-LCHlch(42.37, 75.04, 299.15°)
OKLaboklab(51.8% 0.0214 -0.1885)
OKLCHoklch(51.8% 0.19 276.5)
XYZxyz(18.1927, 12.7417, 62.4610)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154D2 #D2CF51
analogous
#5194D2 #5154D2 #8F51D2
triadic
#5154D2 #D25154 #54D251
tetradic
#5154D2 #D25194 #D2CF51 #51D28F
square
#5154D2 #D25194 #D2CF51 #51D28F
split-complementary
#5154D2 #D28F51 #94D251
monochromatic
#232586 #2F32B7 #5154D2 #8284DF #B2B4EB

Accessibility & contrast

On white

5.92
#5154D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5154D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154D2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154D2#FFFFFF#000000##FFFFFF
##5154D21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5154d2;
/* rgb */ color: rgb(81, 84, 210);
/* oklch */ color: oklch(51.8% 0.190 276.5);
Tailwind
colors: {
  custom: {
    50: '#8f84e1',
    500: '#5154d2',
    950: '#000000',
  },
}
SCSS
$custom: #5154d2;
$custom-light: #8f84e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5154d2",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 238.605,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.18976,
    "h": 276.5
  },
  "luminance": 0.12743
}

Semantic roles & 50–950 ramp

primary
#5154D2
secondary
#DAD8A5
accent
#DE46E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5154D2

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

Preview Lab → · Contrast checker → · Palette generator →

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