#5154AF#5154AF

#5154AF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.142 H 278.4°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5154AF
RGBrgb(81, 84, 175)
HSLhsl(238, 37%, 50%)
HSVhsv(238, 54%, 69%)
CMYKcmyk(53.7%, 52%, 0%, 31.4%)
CIE-LABlab(39.89, 25.02, -49.18)
CIE-LCHlch(39.89, 55.18, 296.97°)
OKLaboklab(49.17% 0.0207 -0.1404)
OKLCHoklch(49.17% 0.142 278.4)
XYZxyz(14.2991, 11.1842, 41.9544)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154AF #AFAC51
analogous
#5183AF #5154AF #7D51AF
triadic
#5154AF #AF5154 #54AF51
tetradic
#5154AF #AF5183 #AFAC51 #51AF7D
square
#5154AF #AF5183 #AFAC51 #51AF7D
split-complementary
#5154AF #AF7D51 #83AF51
monochromatic
#2A2C5C #3D4085 #5154AF #7B7DC2 #A5A6D6

Accessibility & contrast

On white

6.49
#5154AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5154AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154AF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154AF#FFFFFF#000000##FFFFFF
##5154AF1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#175AAD
Tritanopia (blue-blind)
#276879
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5154af;
/* rgb */ color: rgb(81, 84, 175);
/* oklch */ color: oklch(49.2% 0.142 278.4);
Tailwind
colors: {
  custom: {
    50: '#8984c7',
    500: '#5154af',
    950: '#000000',
  },
}
SCSS
$custom: #5154af;
$custom-light: #8984c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5154af",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 238.085,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49165,
    "c": 0.14194,
    "h": 278.4
  },
  "luminance": 0.11185
}

Semantic roles & 50–950 ramp

primary
#5154AF
secondary
#C3C299
accent
#C95BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5154AF

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

Preview Lab → · Contrast checker → · Palette generator →

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