#5187F1#5187F1

#5187F1 is a light, vivid blue. Relative luminance 0.254; OKLCH L 63.9% C 0.169 H 262.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5187F1
RGBrgb(81, 135, 241)
HSLhsl(220, 85%, 63%)
HSVhsv(220, 66%, 95%)
CMYKcmyk(66.4%, 44%, 0%, 5.5%)
CIE-LABlab(57.49, 15.65, -58.63)
CIE-LCHlch(57.49, 60.68, 284.95°)
OKLaboklab(63.87% -0.0225 -0.1676)
OKLCHoklch(63.87% 0.169 262.3)
XYZxyz(27.9289, 25.4254, 86.6378)
Luminance0.2543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187F1 #F1BB51
analogous
#51D7F1 #5187F1 #6B51F1
triadic
#5187F1 #F15187 #87F151
tetradic
#5187F1 #F151D7 #F1BB51 #51F16B
square
#5187F1 #F151D7 #F1BB51 #51F16B
split-complementary
#5187F1 #F16B51 #D7F151
monochromatic
#0F48B9 #1860EC #5187F1 #8AAEF6 #C2D5FA

Accessibility & contrast

On white

3.45
#5187F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#5187F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187F1
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187F1#FFFFFF#000000##000000
##5187F11.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5392F5
Deuteranopia (green-blind)
#3783EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5187f1;
/* rgb */ color: rgb(81, 135, 241);
/* oklch */ color: oklch(63.9% 0.169 262.3);
Tailwind
colors: {
  custom: {
    50: '#92a9f6',
    500: '#5187f1',
    950: '#000000',
  },
}
SCSS
$custom: #5187f1;
$custom-light: #92a9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5187f1",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 219.75,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63865,
    "c": 0.1691,
    "h": 262.3
  },
  "luminance": 0.25428
}

Semantic roles & 50–950 ramp

primary
#5187F1
secondary
#ECD8B2
accent
#9704E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5187F1

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

Preview Lab → · Contrast checker → · Palette generator →

#5187F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva