#5181F4#5181F4

#5181F4 is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.8% C 0.180 H 264.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5181F4
RGBrgb(81, 129, 244)
HSLhsl(222, 88%, 64%)
HSVhsv(222, 67%, 96%)
CMYKcmyk(66.8%, 47.1%, 0%, 4.3%)
CIE-LABlab(56.07, 20.34, -62.57)
CIE-LCHlch(56.07, 65.79, 288.01°)
OKLaboklab(62.83% -0.0166 -0.1793)
OKLCHoklch(62.83% 0.18 264.7)
XYZxyz(27.5670, 23.9788, 88.7460)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181F4 #F4C451
analogous
#51D3F4 #5181F4 #7251F4
triadic
#5181F4 #F45181 #81F451
tetradic
#5181F4 #F451D3 #F4C451 #51F472
square
#5181F4 #F451D3 #F4C451 #51F472
split-complementary
#5181F4 #F47251 #D3F451
monochromatic
#0C41BF #1757F0 #5181F4 #8BABF8 #C4D4FB

Accessibility & contrast

On white

3.62
#5181F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#5181F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181F4
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181F4#FFFFFF#000000##000000
##5181F41.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#448EF8
Deuteranopia (green-blind)
#1E7FF2
Tritanopia (blue-blind)
#009CAF
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5181f4;
/* rgb */ color: rgb(81, 129, 244);
/* oklch */ color: oklch(62.8% 0.180 264.7);
Tailwind
colors: {
  custom: {
    50: '#92a5f8',
    500: '#5181f4',
    950: '#000000',
  },
}
SCSS
$custom: #5181f4;
$custom-light: #92a5f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5181f4",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 244
  },
  "hsl": {
    "h": 222.331,
    "s": 88.108,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62832,
    "c": 0.18004,
    "h": 264.7
  },
  "luminance": 0.23981
}

Semantic roles & 50–950 ramp

primary
#5181F4
secondary
#EDDCB4
accent
#A201E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5181F4

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

Preview Lab → · Contrast checker → · Palette generator →

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