#5181CA#5181CA

#5181CA is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.3% C 0.124 H 258.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5181CA
RGBrgb(81, 129, 202)
HSLhsl(216, 53%, 55%)
HSVhsv(216, 60%, 79%)
CMYKcmyk(59.9%, 36.1%, 0%, 20.8%)
CIE-LABlab(53.72, 6.01, -42.76)
CIE-LCHlch(53.72, 43.18, 278.01°)
OKLaboklab(60.26% -0.0246 -0.1211)
OKLCHoklch(60.26% 0.124 258.5)
XYZxyz(21.9005, 21.7122, 58.9024)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CA #CA9A51
analogous
#51BECA #5181CA #5D51CA
triadic
#5181CA #CA5181 #81CA51
tetradic
#5181CA #CA51BE #CA9A51 #51CA5D
square
#5181CA #CA51BE #CA9A51 #51CA5D
split-complementary
#5181CA #CA5D51 #BECA51
monochromatic
#25477B #3463AA #5181CA #80A3D8 #AFC5E7

Accessibility & contrast

On white

3.93
#5181CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5181CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CA#FFFFFF#000000##000000
##5181CA1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CD
Deuteranopia (green-blind)
#527BC8
Tritanopia (blue-blind)
#00919C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5181ca;
/* rgb */ color: rgb(81, 129, 202);
/* oklch */ color: oklch(60.3% 0.124 258.5);
Tailwind
colors: {
  custom: {
    50: '#8ca5da',
    500: '#5181ca',
    950: '#000000',
  },
}
SCSS
$custom: #5181ca;
$custom-light: #8ca5da;
$custom-dark: #000000;
JSON
{
  "hex": "#5181ca",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 202
  },
  "hsl": {
    "h": 216.198,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60263,
    "c": 0.12361,
    "h": 258.5
  },
  "luminance": 0.21714
}

Semantic roles & 50–950 ramp

primary
#5181CA
secondary
#D5C1A2
accent
#A34BDD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CA

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

Preview Lab → · Contrast checker → · Palette generator →

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