#5181FF#5181FF

#5181FF is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.6% C 0.195 H 265.5°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5181FF
RGBrgb(81, 129, 255)
HSLhsl(223, 100%, 66%)
HSVhsv(223, 68%, 100%)
CMYKcmyk(68.2%, 49.4%, 0%, 0%)
CIE-LABlab(56.75, 24.14, -67.54)
CIE-LCHlch(56.75, 71.73, 289.67°)
OKLaboklab(63.57% -0.0153 -0.1939)
OKLCHoklch(63.57% 0.195 265.5)
XYZxyz(29.2873, 24.6669, 97.8061)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181FF #FFCF51
analogous
#51D8FF #5181FF #7851FF
triadic
#5181FF #FF5181 #81FF51
tetradic
#5181FF #FF51D8 #FFCF51 #51FF78
square
#5181FF #FF51D8 #FFCF51 #51FF78
split-complementary
#5181FF #FF7851 #D8FF51
monochromatic
#003BD6 #1455FF #5181FF #8EADFF #CBDAFF

Accessibility & contrast

On white

3.54
#5181FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#5181FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181FF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181FF#FFFFFF#000000##000000
##5181FF1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3791FF
Deuteranopia (green-blind)
#0081FC
Tritanopia (blue-blind)
#009FB4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5181ff;
/* rgb */ color: rgb(81, 129, 255);
/* oklch */ color: oklch(63.6% 0.195 265.5);
Tailwind
colors: {
  custom: {
    50: '#94a5ff',
    500: '#5181ff',
    950: '#000000',
  },
}
SCSS
$custom: #5181ff;
$custom-light: #94a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5181ff",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 255
  },
  "hsl": {
    "h": 223.448,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63572,
    "c": 0.19451,
    "h": 265.5
  },
  "luminance": 0.2467
}

Semantic roles & 50–950 ramp

primary
#5181FF
secondary
#F3E3B9
accent
#A600E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F18
muted
#7E7F86

Preview Lab

Preview with #5181FF

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

Preview Lab → · Contrast checker → · Palette generator →

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