#5178DB#5178DB

#5178DB is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.4% C 0.157 H 265.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5178DB
RGBrgb(81, 120, 219)
HSLhsl(223, 66%, 59%)
HSVhsv(223, 63%, 86%)
CMYKcmyk(63%, 45.2%, 0%, 14.1%)
CIE-LABlab(52.17, 17.26, -54.85)
CIE-LCHlch(52.17, 57.50, 287.47°)
OKLaboklab(59.37% -0.0119 -0.1567)
OKLCHoklch(59.37% 0.157 265.7)
XYZxyz(22.8916, 20.2947, 69.7150)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178DB #DBB451
analogous
#51BDDB #5178DB #6F51DB
triadic
#5178DB #DB5178 #78DB51
tetradic
#5178DB #DB51BD #DBB451 #51DB6F
square
#5178DB #DB51BD #DBB451 #51DB6F
split-complementary
#5178DB #DB6F51 #BDDB51
monochromatic
#1E3F93 #2955C6 #5178DB #849FE5 #B6C7F0

Accessibility & contrast

On white

4.15
#5178DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5178DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178DB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178DB#FFFFFF#000000##000000
##5178DB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4883DF
Deuteranopia (green-blind)
#3177D9
Tritanopia (blue-blind)
#008F9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5178db;
/* rgb */ color: rgb(81, 120, 219);
/* oklch */ color: oklch(59.4% 0.157 265.7);
Tailwind
colors: {
  custom: {
    50: '#8e9ee7',
    500: '#5178db',
    950: '#000000',
  },
}
SCSS
$custom: #5178db;
$custom-light: #8e9ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5178db",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 223.043,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59367,
    "c": 0.15714,
    "h": 265.7
  },
  "luminance": 0.20297
}

Semantic roles & 50–950 ramp

primary
#5178DB
secondary
#DFD0A9
accent
#B93FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5178DB

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

Preview Lab → · Contrast checker → · Palette generator →

#5178DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva