#5181DF#5181DF

#5181DF is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.5% C 0.152 H 262.4°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5181DF
RGBrgb(81, 129, 223)
HSLhsl(220, 69%, 60%)
HSVhsv(220, 64%, 87%)
CMYKcmyk(63.7%, 42.2%, 0%, 12.5%)
CIE-LABlab(54.84, 13.12, -52.83)
CIE-LCHlch(54.84, 54.43, 283.94°)
OKLaboklab(61.5% -0.02 -0.1506)
OKLCHoklch(61.5% 0.152 262.4)
XYZxyz(24.5582, 22.7753, 72.8996)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DF #DFAF51
analogous
#51C8DF #5181DF #6851DF
triadic
#5181DF #DF5181 #81DF51
tetradic
#5181DF #DF51C8 #DFAF51 #51DF68
square
#5181DF #DF51C8 #DFAF51 #51DF68
split-complementary
#5181DF #DF6851 #C8DF51
monochromatic
#1C4799 #265ECD #5181DF #85A6E9 #B8CCF2

Accessibility & contrast

On white

3.78
#5181DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#5181DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DF#FFFFFF#000000##000000
##5181DF1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE3
Deuteranopia (green-blind)
#407DDD
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181df;
/* rgb */ color: rgb(81, 129, 223);
/* oklch */ color: oklch(61.5% 0.152 262.4);
Tailwind
colors: {
  custom: {
    50: '#8fa5e9',
    500: '#5181df',
    950: '#000000',
  },
}
SCSS
$custom: #5181df;
$custom-light: #8fa5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5181df",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 223
  },
  "hsl": {
    "h": 219.718,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61495,
    "c": 0.15196,
    "h": 262.4
  },
  "luminance": 0.22778
}

Semantic roles & 50–950 ramp

primary
#5181DF
secondary
#E1CFAA
accent
#B03CEC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5181DF

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

Preview Lab → · Contrast checker → · Palette generator →

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