#5181F6#5181F6

#5181F6 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.0% C 0.183 H 264.9°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5181F6
RGBrgb(81, 129, 246)
HSLhsl(223, 90%, 64%)
HSVhsv(223, 67%, 96%)
CMYKcmyk(67.1%, 47.6%, 0%, 3.5%)
CIE-LABlab(56.19, 21.03, -63.48)
CIE-LCHlch(56.19, 66.87, 288.33°)
OKLaboklab(62.97% -0.0164 -0.1819)
OKLCHoklch(62.97% 0.183 264.9)
XYZxyz(27.8723, 24.1009, 90.3540)
Luminance0.2410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181F6 #F6C651
analogous
#51D4F6 #5181F6 #7451F6
triadic
#5181F6 #F65181 #81F651
tetradic
#5181F6 #F651D4 #F6C651 #51F674
square
#5181F6 #F651D4 #F6C651 #51F674
split-complementary
#5181F6 #F67451 #D4F651
monochromatic
#0A40C3 #1757F3 #5181F6 #8BABF9 #C5D5FC

Accessibility & contrast

On white

3.61
#5181F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#5181F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181F6
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181F6#FFFFFF#000000##000000
##5181F61.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFA
Deuteranopia (green-blind)
#1880F4
Tritanopia (blue-blind)
#009CB0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5181f6;
/* rgb */ color: rgb(81, 129, 246);
/* oklch */ color: oklch(63.0% 0.183 264.9);
Tailwind
colors: {
  custom: {
    50: '#93a5fa',
    500: '#5181f6',
    950: '#000000',
  },
}
SCSS
$custom: #5181f6;
$custom-light: #93a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5181f6",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 246
  },
  "hsl": {
    "h": 222.545,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62965,
    "c": 0.18268,
    "h": 264.9
  },
  "luminance": 0.24104
}

Semantic roles & 50–950 ramp

primary
#5181F6
secondary
#EEDDB5
accent
#A300E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5181F6

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

Preview Lab → · Contrast checker → · Palette generator →

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