#5181CB#5181CB

#5181CB is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.3% C 0.125 H 258.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5181CB
RGBrgb(81, 129, 203)
HSLhsl(216, 54%, 56%)
HSVhsv(216, 60%, 80%)
CMYKcmyk(60.1%, 36.5%, 0%, 20.4%)
CIE-LABlab(53.77, 6.35, -43.24)
CIE-LCHlch(53.77, 43.71, 278.35°)
OKLaboklab(60.32% -0.0243 -0.1226)
OKLCHoklch(60.32% 0.125 258.8)
XYZxyz(22.0193, 21.7597, 59.5280)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CB #CB9B51
analogous
#51BECB #5181CB #5E51CB
triadic
#5181CB #CB5181 #81CB51
tetradic
#5181CB #CB51BE #CB9B51 #51CB5E
square
#5181CB #CB51BE #CB9B51 #51CB5E
split-complementary
#5181CB #CB5E51 #BECB51
monochromatic
#25487C #3363AC #5181CB #80A3D9 #AFC5E7

Accessibility & contrast

On white

3.92
#5181CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#5181CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CB#FFFFFF#000000##000000
##5181CB1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#517BC9
Tritanopia (blue-blind)
#00929C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5181cb;
/* rgb */ color: rgb(81, 129, 203);
/* oklch */ color: oklch(60.3% 0.125 258.8);
Tailwind
colors: {
  custom: {
    50: '#8ca5db',
    500: '#5181cb',
    950: '#000000',
  },
}
SCSS
$custom: #5181cb;
$custom-light: #8ca5db;
$custom-dark: #000000;
JSON
{
  "hex": "#5181cb",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 203
  },
  "hsl": {
    "h": 216.393,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60319,
    "c": 0.12495,
    "h": 258.8
  },
  "luminance": 0.21762
}

Semantic roles & 50–950 ramp

primary
#5181CB
secondary
#D5C1A3
accent
#A44ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CB

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

Preview Lab → · Contrast checker → · Palette generator →

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