#5181E4#5181E4

#5181E4 is a mid, vivid blue. Relative luminance 0.231; OKLCH L 61.8% C 0.159 H 263.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5181E4
RGBrgb(81, 129, 228)
HSLhsl(220, 73%, 61%)
HSVhsv(220, 64%, 89%)
CMYKcmyk(64.5%, 43.4%, 0%, 10.6%)
CIE-LABlab(55.12, 14.83, -55.18)
CIE-LCHlch(55.12, 57.13, 285.04°)
OKLaboklab(61.8% -0.0191 -0.1575)
OKLCHoklch(61.8% 0.159 263.1)
XYZxyz(25.2423, 23.0489, 76.5024)
Luminance0.2305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E4 #E4B451
analogous
#51CAE4 #5181E4 #6A51E4
triadic
#5181E4 #E45181 #81E451
tetradic
#5181E4 #E451CA #E4B451 #51E46A
square
#5181E4 #E451CA #E4B451 #51E46A
split-complementary
#5181E4 #E46A51 #CAE451
monochromatic
#1946A2 #215CD7 #5181E4 #86A7EC #BBCEF4

Accessibility & contrast

On white

3.74
#5181E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5181E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E4#FFFFFF#000000##000000
##5181E41.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#528BE8
Deuteranopia (green-blind)
#3A7EE2
Tritanopia (blue-blind)
#0098A7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5181e4;
/* rgb */ color: rgb(81, 129, 228);
/* oklch */ color: oklch(61.8% 0.159 263.1);
Tailwind
colors: {
  custom: {
    50: '#90a5ed',
    500: '#5181e4',
    950: '#000000',
  },
}
SCSS
$custom: #5181e4;
$custom-light: #90a5ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e4",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 228
  },
  "hsl": {
    "h": 220.408,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61804,
    "c": 0.15869,
    "h": 263.1
  },
  "luminance": 0.23051
}

Semantic roles & 50–950 ramp

primary
#5181E4
secondary
#E4D2AC
accent
#9510D5
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E4

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

Preview Lab → · Contrast checker → · Palette generator →

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