#5181F2#5181F2

#5181F2 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.7% C 0.177 H 264.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5181F2
RGBrgb(81, 129, 242)
HSLhsl(222, 86%, 63%)
HSVhsv(222, 67%, 95%)
CMYKcmyk(66.5%, 46.7%, 0%, 5.1%)
CIE-LABlab(55.95, 19.65, -61.65)
CIE-LCHlch(55.95, 64.71, 287.67°)
OKLaboklab(62.7% -0.0169 -0.1766)
OKLCHoklch(62.7% 0.177 264.5)
XYZxyz(27.2650, 23.8580, 87.1554)
Luminance0.2386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181F2 #F2C251
analogous
#51D1F2 #5181F2 #7151F2
triadic
#5181F2 #F25181 #81F251
tetradic
#5181F2 #F251D1 #F2C251 #51F271
square
#5181F2 #F251D1 #F2C251 #51F271
split-complementary
#5181F2 #F27151 #D1F251
monochromatic
#0E41BB #1858EE #5181F2 #8AAAF6 #C3D3FB

Accessibility & contrast

On white

3.64
#5181F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#5181F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181F2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181F2#FFFFFF#000000##000000
##5181F21.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#237FF0
Tritanopia (blue-blind)
#009BAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5181f2;
/* rgb */ color: rgb(81, 129, 242);
/* oklch */ color: oklch(62.7% 0.177 264.5);
Tailwind
colors: {
  custom: {
    50: '#92a5f7',
    500: '#5181f2',
    950: '#000000',
  },
}
SCSS
$custom: #5181f2;
$custom-light: #92a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5181f2",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 222.112,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62701,
    "c": 0.17739,
    "h": 264.5
  },
  "luminance": 0.23861
}

Semantic roles & 50–950 ramp

primary
#5181F2
secondary
#ECDBB3
accent
#A003E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5181F2

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

Preview Lab → · Contrast checker → · Palette generator →

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