#5182DF#5182DF

#5182DF is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.7% C 0.151 H 262.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5182DF
RGBrgb(81, 130, 223)
HSLhsl(219, 69%, 60%)
HSVhsv(219, 64%, 87%)
CMYKcmyk(63.7%, 41.7%, 0%, 12.5%)
CIE-LABlab(55.11, 12.51, -52.39)
CIE-LCHlch(55.11, 53.86, 283.43°)
OKLaboklab(61.71% -0.021 -0.1493)
OKLCHoklch(61.71% 0.151 262)
XYZxyz(24.6906, 23.0400, 72.9437)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182DF #DFAE51
analogous
#51C9DF #5182DF #6751DF
triadic
#5182DF #DF5182 #82DF51
tetradic
#5182DF #DF51C9 #DFAE51 #51DF67
square
#5182DF #DF51C9 #DFAE51 #51DF67
split-complementary
#5182DF #DF6751 #C9DF51
monochromatic
#1C4799 #265FCD #5182DF #85A7E9 #B8CCF2

Accessibility & contrast

On white

3.74
#5182DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5182DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182DF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182DF#FFFFFF#000000##000000
##5182DF1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#578BE3
Deuteranopia (green-blind)
#427EDD
Tritanopia (blue-blind)
#0097A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5182df;
/* rgb */ color: rgb(81, 130, 223);
/* oklch */ color: oklch(61.7% 0.151 262.0);
Tailwind
colors: {
  custom: {
    50: '#8fa5e9',
    500: '#5182df',
    950: '#000000',
  },
}
SCSS
$custom: #5182df;
$custom-light: #8fa5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5182df",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 223
  },
  "hsl": {
    "h": 219.296,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61706,
    "c": 0.15081,
    "h": 262
  },
  "luminance": 0.23042
}

Semantic roles & 50–950 ramp

primary
#5182DF
secondary
#E1CEAA
accent
#AF3CEC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5182DF

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

Preview Lab → · Contrast checker → · Palette generator →

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