#5181E6#5181E6

#5181E6 is a mid, vivid blue. Relative luminance 0.232; OKLCH L 61.9% C 0.161 H 263.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5181E6
RGBrgb(81, 129, 230)
HSLhsl(221, 75%, 61%)
HSVhsv(221, 65%, 90%)
CMYKcmyk(64.8%, 43.9%, 0%, 9.8%)
CIE-LABlab(55.24, 15.51, -56.11)
CIE-LCHlch(55.24, 58.22, 285.46°)
OKLaboklab(61.93% -0.0188 -0.1603)
OKLCHoklch(61.93% 0.161 263.3)
XYZxyz(25.5215, 23.1606, 77.9730)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E6 #E6B651
analogous
#51CBE6 #5181E6 #6B51E6
triadic
#5181E6 #E65181 #81E651
tetradic
#5181E6 #E651CB #E6B651 #51E66B
square
#5181E6 #E651CB #E6B651 #51E66B
split-complementary
#5181E6 #E66B51 #CBE651
monochromatic
#1845A5 #1F5CDA #5181E6 #87A8EE #BCCEF5

Accessibility & contrast

On white

3.73
#5181E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5181E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E6
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E6#FFFFFF#000000##000000
##5181E61.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#518CEA
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#0098A8
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5181e6;
/* rgb */ color: rgb(81, 129, 230);
/* oklch */ color: oklch(61.9% 0.161 263.3);
Tailwind
colors: {
  custom: {
    50: '#90a5ee',
    500: '#5181e6',
    950: '#000000',
  },
}
SCSS
$custom: #5181e6;
$custom-light: #90a5ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e6",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 230
  },
  "hsl": {
    "h": 220.671,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.6193,
    "c": 0.16138,
    "h": 263.3
  },
  "luminance": 0.23163
}

Semantic roles & 50–950 ramp

primary
#5181E6
secondary
#E5D3AD
accent
#960ED7
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E6

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

Preview Lab → · Contrast checker → · Palette generator →

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