#5181E0#5181E0

#5181E0 is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.6% C 0.153 H 262.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5181E0
RGBrgb(81, 129, 224)
HSLhsl(220, 70%, 60%)
HSVhsv(220, 64%, 88%)
CMYKcmyk(63.8%, 42.4%, 0%, 12.2%)
CIE-LABlab(54.90, 13.46, -53.30)
CIE-LCHlch(54.90, 54.97, 284.17°)
OKLaboklab(61.56% -0.0198 -0.152)
OKLCHoklch(61.56% 0.153 262.6)
XYZxyz(24.6934, 22.8293, 73.6117)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E0 #E0B051
analogous
#51C9E0 #5181E0 #6951E0
triadic
#5181E0 #E05181 #81E051
tetradic
#5181E0 #E051C9 #E0B051 #51E069
square
#5181E0 #E051C9 #E0B051 #51E069
split-complementary
#5181E0 #E06951 #C9E051
monochromatic
#1C469B #255ECF #5181E0 #85A7E9 #B9CCF3

Accessibility & contrast

On white

3.77
#5181E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5181E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E0
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E0#FFFFFF#000000##000000
##5181E01.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#558AE4
Deuteranopia (green-blind)
#3F7DDE
Tritanopia (blue-blind)
#0097A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181e0;
/* rgb */ color: rgb(81, 129, 224);
/* oklch */ color: oklch(61.6% 0.153 262.6);
Tailwind
colors: {
  custom: {
    50: '#8fa5ea',
    500: '#5181e0',
    950: '#000000',
  },
}
SCSS
$custom: #5181e0;
$custom-light: #8fa5ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e0",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 224
  },
  "hsl": {
    "h": 219.86,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61556,
    "c": 0.15331,
    "h": 262.6
  },
  "luminance": 0.22832
}

Semantic roles & 50–950 ramp

primary
#5181E0
secondary
#E2CFAB
accent
#B13BED
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E0

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

Preview Lab → · Contrast checker → · Palette generator →

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