#5181E2#5181E2

#5181E2 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.7% C 0.156 H 262.8°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5181E2
RGBrgb(81, 129, 226)
HSLhsl(220, 71%, 60%)
HSVhsv(220, 64%, 89%)
CMYKcmyk(64.2%, 42.9%, 0%, 11.4%)
CIE-LABlab(55.01, 14.14, -54.24)
CIE-LCHlch(55.01, 56.05, 284.61°)
OKLaboklab(61.68% -0.0195 -0.1548)
OKLCHoklch(61.68% 0.156 262.8)
XYZxyz(24.9662, 22.9385, 75.0486)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E2 #E2B251
analogous
#51CAE2 #5181E2 #6951E2
triadic
#5181E2 #E25181 #81E251
tetradic
#5181E2 #E251CA #E2B251 #51E269
square
#5181E2 #E251CA #E2B251 #51E269
split-complementary
#5181E2 #E26951 #CAE251
monochromatic
#1A469E #235DD3 #5181E2 #85A7EB #BACDF3

Accessibility & contrast

On white

3.76
#5181E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#5181E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E2#FFFFFF#000000##000000
##5181E21.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#548BE6
Deuteranopia (green-blind)
#3C7DE0
Tritanopia (blue-blind)
#0097A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5181e2;
/* rgb */ color: rgb(81, 129, 226);
/* oklch */ color: oklch(61.7% 0.156 262.8);
Tailwind
colors: {
  custom: {
    50: '#8fa5ec',
    500: '#5181e2',
    950: '#000000',
  },
}
SCSS
$custom: #5181e2;
$custom-light: #8fa5ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e2",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 226
  },
  "hsl": {
    "h": 220.138,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6168,
    "c": 0.156,
    "h": 262.8
  },
  "luminance": 0.22941
}

Semantic roles & 50–950 ramp

primary
#5181E2
secondary
#E3D1AC
accent
#9312D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E2

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

Preview Lab → · Contrast checker → · Palette generator →

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