#5181E8#5181E8

#5181E8 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.1% C 0.164 H 263.5°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5181E8
RGBrgb(81, 129, 232)
HSLhsl(221, 77%, 61%)
HSVhsv(221, 65%, 91%)
CMYKcmyk(65.1%, 44.4%, 0%, 9%)
CIE-LABlab(55.35, 16.20, -57.04)
CIE-LCHlch(55.35, 59.30, 285.86°)
OKLaboklab(62.06% -0.0184 -0.163)
OKLCHoklch(62.06% 0.164 263.5)
XYZxyz(25.8040, 23.2736, 79.4607)
Luminance0.2328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E8 #E8B851
analogous
#51CDE8 #5181E8 #6D51E8
triadic
#5181E8 #E85181 #81E851
tetradic
#5181E8 #E851CD #E8B851 #51E86D
square
#5181E8 #E851CD #E8B851 #51E86D
split-complementary
#5181E8 #E86D51 #CDE851
monochromatic
#1645A8 #1D5BDE #5181E8 #87A8EF #BDCFF6

Accessibility & contrast

On white

3.71
#5181E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#5181E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E8
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E8#FFFFFF#000000##000000
##5181E81.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8CEC
Deuteranopia (green-blind)
#357EE6
Tritanopia (blue-blind)
#0099A9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5181e8;
/* rgb */ color: rgb(81, 129, 232);
/* oklch */ color: oklch(62.1% 0.164 263.5);
Tailwind
colors: {
  custom: {
    50: '#90a5f0',
    500: '#5181e8',
    950: '#000000',
  },
}
SCSS
$custom: #5181e8;
$custom-light: #90a5f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e8",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 232
  },
  "hsl": {
    "h": 220.927,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62056,
    "c": 0.16406,
    "h": 263.5
  },
  "luminance": 0.23276
}

Semantic roles & 50–950 ramp

primary
#5181E8
secondary
#E7D5AE
accent
#980DD9
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E8

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

Preview Lab → · Contrast checker → · Palette generator →

#5181E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva