#5182C8#5182C8

#5182C8 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.4% C 0.120 H 257.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5182C8
RGBrgb(81, 130, 200)
HSLhsl(215, 52%, 55%)
HSVhsv(215, 60%, 78%)
CMYKcmyk(59.5%, 35%, 0%, 21.6%)
CIE-LABlab(53.90, 4.75, -41.33)
CIE-LCHlch(53.90, 41.60, 276.55°)
OKLaboklab(60.37% -0.0261 -0.117)
OKLCHoklch(60.37% 0.12 257.4)
XYZxyz(21.7976, 21.8828, 57.7075)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182C8 #C89751
analogous
#51BEC8 #5182C8 #5B51C8
triadic
#5182C8 #C85182 #82C851
tetradic
#5182C8 #C851BE #C89751 #51C85B
square
#5182C8 #C851BE #C89751 #51C85B
split-complementary
#5182C8 #C85B51 #BEC851
monochromatic
#264879 #3564A7 #5182C8 #80A3D7 #AEC5E5

Accessibility & contrast

On white

3.91
#5182C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5182C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182C8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182C8#FFFFFF#000000##000000
##5182C81.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6587CB
Deuteranopia (green-blind)
#557CC7
Tritanopia (blue-blind)
#00929C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5182c8;
/* rgb */ color: rgb(81, 130, 200);
/* oklch */ color: oklch(60.4% 0.120 257.4);
Tailwind
colors: {
  custom: {
    50: '#8ba6d9',
    500: '#5182c8',
    950: '#000000',
  },
}
SCSS
$custom: #5182c8;
$custom-light: #8ba6d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5182c8",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 200
  },
  "hsl": {
    "h": 215.294,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60372,
    "c": 0.11986,
    "h": 257.4
  },
  "luminance": 0.21885
}

Semantic roles & 50–950 ramp

primary
#5182C8
secondary
#D3BFA1
accent
#A14CDB
background
#F9FAFD
surface
#F1F4FA
border
#CBCED3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5182C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5182C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva