#5181E3#5181E3

#5181E3 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.7% C 0.157 H 263.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5181E3
RGBrgb(81, 129, 227)
HSLhsl(220, 72%, 60%)
HSVhsv(220, 64%, 89%)
CMYKcmyk(64.3%, 43.2%, 0%, 11%)
CIE-LABlab(55.07, 14.48, -54.71)
CIE-LCHlch(55.07, 56.59, 284.83°)
OKLaboklab(61.74% -0.0193 -0.1562)
OKLCHoklch(61.74% 0.157 263)
XYZxyz(25.1039, 22.9935, 75.7734)
Luminance0.2300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181E3 #E3B351
analogous
#51CAE3 #5181E3 #6A51E3
triadic
#5181E3 #E35181 #81E351
tetradic
#5181E3 #E351CA #E3B351 #51E36A
square
#5181E3 #E351CA #E3B351 #51E36A
split-complementary
#5181E3 #E36A51 #CAE351
monochromatic
#1A46A0 #225DD5 #5181E3 #86A7EB #BACDF4

Accessibility & contrast

On white

3.75
#5181E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5181E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181E3
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181E3#FFFFFF#000000##000000
##5181E31.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE7
Deuteranopia (green-blind)
#3B7EE1
Tritanopia (blue-blind)
#0097A7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5181e3;
/* rgb */ color: rgb(81, 129, 227);
/* oklch */ color: oklch(61.7% 0.157 263.0);
Tailwind
colors: {
  custom: {
    50: '#8fa5ec',
    500: '#5181e3',
    950: '#000000',
  },
}
SCSS
$custom: #5181e3;
$custom-light: #8fa5ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5181e3",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 227
  },
  "hsl": {
    "h": 220.274,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61742,
    "c": 0.15735,
    "h": 263
  },
  "luminance": 0.22996
}

Semantic roles & 50–950 ramp

primary
#5181E3
secondary
#E4D1AC
accent
#9411D4
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181E3

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

Preview Lab → · Contrast checker → · Palette generator →

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