#5181CD#5181CD

#5181CD is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.4% C 0.128 H 259.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5181CD
RGBrgb(81, 129, 205)
HSLhsl(217, 55%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(60.5%, 37.1%, 0%, 19.6%)
CIE-LABlab(53.87, 7.02, -44.21)
CIE-LCHlch(53.87, 44.77, 279.02°)
OKLaboklab(60.43% -0.0238 -0.1254)
OKLCHoklch(60.43% 0.128 259.2)
XYZxyz(22.2592, 21.8556, 60.7913)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CD #CD9D51
analogous
#51BFCD #5181CD #5F51CD
triadic
#5181CD #CD5181 #81CD51
tetradic
#5181CD #CD51BF #CD9D51 #51CD5F
square
#5181CD #CD51BF #CD9D51 #51CD5F
split-complementary
#5181CD #CD5F51 #BFCD51
monochromatic
#25487F #3262AF #5181CD #81A3DB #B0C6E8

Accessibility & contrast

On white

3.91
#5181CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5181CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CD
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CD#FFFFFF#000000##000000
##5181CD1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187D0
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5181cd;
/* rgb */ color: rgb(81, 129, 205);
/* oklch */ color: oklch(60.4% 0.128 259.2);
Tailwind
colors: {
  custom: {
    50: '#8ca5dc',
    500: '#5181cd',
    950: '#000000',
  },
}
SCSS
$custom: #5181cd;
$custom-light: #8ca5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5181cd",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 205
  },
  "hsl": {
    "h": 216.774,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60432,
    "c": 0.12765,
    "h": 259.2
  },
  "luminance": 0.21858
}

Semantic roles & 50–950 ramp

primary
#5181CD
secondary
#D7C3A3
accent
#A549DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CD

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

Preview Lab → · Contrast checker → · Palette generator →

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