#5181EC#5181EC

#5181EC is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.3% C 0.169 H 264.0°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5181EC
RGBrgb(81, 129, 236)
HSLhsl(221, 80%, 62%)
HSVhsv(221, 66%, 93%)
CMYKcmyk(65.7%, 45.3%, 0%, 7.5%)
CIE-LABlab(55.59, 17.58, -58.90)
CIE-LCHlch(55.59, 61.46, 286.62°)
OKLaboklab(62.31% -0.0178 -0.1685)
OKLCHoklch(62.31% 0.169 264)
XYZxyz(26.3786, 23.5034, 82.4871)
Luminance0.2351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181EC #ECBC51
analogous
#51CFEC #5181EC #6E51EC
triadic
#5181EC #EC5181 #81EC51
tetradic
#5181EC #EC51CF #ECBC51 #51EC6E
square
#5181EC #EC51CF #ECBC51 #51EC6E
split-complementary
#5181EC #EC6E51 #CFEC51
monochromatic
#1344AF #1A59E6 #5181EC #88A9F2 #BFD1F8

Accessibility & contrast

On white

3.68
#5181EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5181EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181EC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181EC#FFFFFF#000000##000000
##5181EC1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF0
Deuteranopia (green-blind)
#2F7FEA
Tritanopia (blue-blind)
#009AAB
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5181ec;
/* rgb */ color: rgb(81, 129, 236);
/* oklch */ color: oklch(62.3% 0.169 264.0);
Tailwind
colors: {
  custom: {
    50: '#91a5f3',
    500: '#5181ec',
    950: '#000000',
  },
}
SCSS
$custom: #5181ec;
$custom-light: #91a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5181ec",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 221.419,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62311,
    "c": 0.16941,
    "h": 264
  },
  "luminance": 0.23506
}

Semantic roles & 50–950 ramp

primary
#5181EC
secondary
#E9D7B0
accent
#9B09DD
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5181EC

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

Preview Lab → · Contrast checker → · Palette generator →

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