#5181CE#5181CE

#5181CE is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.5% C 0.129 H 259.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5181CE
RGBrgb(81, 129, 206)
HSLhsl(217, 56%, 56%)
HSVhsv(217, 61%, 81%)
CMYKcmyk(60.7%, 37.4%, 0%, 19.2%)
CIE-LABlab(53.93, 7.35, -44.70)
CIE-LCHlch(53.93, 45.30, 279.34°)
OKLaboklab(60.49% -0.0236 -0.1268)
OKLCHoklch(60.49% 0.129 259.5)
XYZxyz(22.3803, 21.9041, 61.4291)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CE #CE9E51
analogous
#51C0CE #5181CE #6051CE
triadic
#5181CE #CE5181 #81CE51
tetradic
#5181CE #CE51C0 #CE9E51 #51CE60
square
#5181CE #CE51C0 #CE9E51 #51CE60
split-complementary
#5181CE #CE6051 #C0CE51
monochromatic
#244880 #3262B0 #5181CE #81A4DB #B1C6E9

Accessibility & contrast

On white

3.90
#5181CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5181CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CE
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CE#FFFFFF#000000##000000
##5181CE1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6087D1
Deuteranopia (green-blind)
#4F7CCC
Tritanopia (blue-blind)
#00929E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5181ce;
/* rgb */ color: rgb(81, 129, 206);
/* oklch */ color: oklch(60.5% 0.129 259.5);
Tailwind
colors: {
  custom: {
    50: '#8ca5dd',
    500: '#5181ce',
    950: '#000000',
  },
}
SCSS
$custom: #5181ce;
$custom-light: #8ca5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5181ce",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 206
  },
  "hsl": {
    "h": 216.96,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60489,
    "c": 0.129,
    "h": 259.5
  },
  "luminance": 0.21906
}

Semantic roles & 50–950 ramp

primary
#5181CE
secondary
#D7C3A4
accent
#A548DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CE

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

Preview Lab → · Contrast checker → · Palette generator →

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