#5153BF#5153BF

#5153BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.1% C 0.166 H 277.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5153BF
RGBrgb(81, 83, 191)
HSLhsl(239, 46%, 53%)
HSVhsv(239, 58%, 75%)
CMYKcmyk(57.6%, 56.5%, 0%, 25.1%)
CIE-LABlab(40.73, 30.91, -57.21)
CIE-LCHlch(40.73, 65.02, 298.38°)
OKLaboklab(50.14% 0.0225 -0.1641)
OKLCHoklch(50.14% 0.166 277.8)
XYZxyz(15.8876, 11.6963, 50.7005)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153BF #BFBD51
analogous
#518ABF #5153BF #8651BF
triadic
#5153BF #BF5153 #53BF51
tetradic
#5153BF #BF518A #BFBD51 #51BF86
square
#5153BF #BF518A #BFBD51 #51BF86
split-complementary
#5153BF #BF8651 #8ABF51
monochromatic
#28296D #393A9A #5153BF #7E7FCF #AAABE0

Accessibility & contrast

On white

6.29
#5153BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5153BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153BF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153BF#FFFFFF#000000##FFFFFF
##5153BF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#0C6C81
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5153bf;
/* rgb */ color: rgb(81, 83, 191);
/* oklch */ color: oklch(50.1% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#8c83d3',
    500: '#5153bf',
    950: '#000000',
  },
}
SCSS
$custom: #5153bf;
$custom-light: #8c83d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5153bf",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 191
  },
  "hsl": {
    "h": 238.909,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50141,
    "c": 0.16559,
    "h": 277.8
  },
  "luminance": 0.11697
}

Semantic roles & 50–950 ramp

primary
#5153BF
secondary
#CECD9E
accent
#D352D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5153BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5153BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva