#5174DB#5174DB

#5174DB is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.5% C 0.162 H 267.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5174DB
RGBrgb(81, 116, 219)
HSLhsl(225, 66%, 59%)
HSVhsv(225, 63%, 86%)
CMYKcmyk(63%, 47%, 0%, 14.1%)
CIE-LABlab(51.10, 19.73, -56.57)
CIE-LCHlch(51.10, 59.91, 289.23°)
OKLaboklab(58.55% -0.0079 -0.1618)
OKLCHoklch(58.55% 0.162 267.2)
XYZxyz(22.4205, 19.3526, 69.5580)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174DB #DBB851
analogous
#51B9DB #5174DB #7351DB
triadic
#5174DB #DB5174 #74DB51
tetradic
#5174DB #DB51B9 #DBB851 #51DB73
square
#5174DB #DB51B9 #DBB851 #51DB73
split-complementary
#5174DB #DB7351 #B9DB51
monochromatic
#1E3C93 #2951C6 #5174DB #849DE5 #B6C5F0

Accessibility & contrast

On white

4.31
#5174DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5174DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174DB#FFFFFF#000000##000000
##5174DB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#2674D9
Tritanopia (blue-blind)
#008C9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5174db;
/* rgb */ color: rgb(81, 116, 219);
/* oklch */ color: oklch(58.5% 0.162 267.2);
Tailwind
colors: {
  custom: {
    50: '#8f9be7',
    500: '#5174db',
    950: '#000000',
  },
}
SCSS
$custom: #5174db;
$custom-light: #8f9be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5174db",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 224.783,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58547,
    "c": 0.162,
    "h": 267.2
  },
  "luminance": 0.19355
}

Semantic roles & 50–950 ramp

primary
#5174DB
secondary
#DFD1A9
accent
#BE3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5174DB

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

Preview Lab → · Contrast checker → · Palette generator →

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