#5174CB#5174CB

#5174CB is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.5% C 0.140 H 265.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5174CB
RGBrgb(81, 116, 203)
HSLhsl(223, 54%, 56%)
HSVhsv(223, 60%, 80%)
CMYKcmyk(60.1%, 42.9%, 0%, 20.4%)
CIE-LABlab(50.16, 14.28, -48.98)
CIE-LCHlch(50.16, 51.02, 286.25°)
OKLaboklab(57.52% -0.0105 -0.1395)
OKLCHoklch(57.52% 0.14 265.7)
XYZxyz(20.4145, 18.5502, 58.9931)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174CB #CBA851
analogous
#51B1CB #5174CB #6B51CB
triadic
#5174CB #CB5174 #74CB51
tetradic
#5174CB #CB51B1 #CBA851 #51CB6B
square
#5174CB #CB51B1 #CBA851 #51CB6B
split-complementary
#5174CB #CB6B51 #B1CB51
monochromatic
#253E7C #3356AC #5174CB #809AD9 #AFBFE7

Accessibility & contrast

On white

4.46
#5174CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5174CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174CB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174CB#FFFFFF#000000##000000
##5174CB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCE
Deuteranopia (green-blind)
#3B72C9
Tritanopia (blue-blind)
#008895
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5174cb;
/* rgb */ color: rgb(81, 116, 203);
/* oklch */ color: oklch(57.5% 0.140 265.7);
Tailwind
colors: {
  custom: {
    50: '#8c9bdb',
    500: '#5174cb',
    950: '#000000',
  },
}
SCSS
$custom: #5174cb;
$custom-light: #8c9bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5174cb",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 203
  },
  "hsl": {
    "h": 222.787,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57523,
    "c": 0.13991,
    "h": 265.7
  },
  "luminance": 0.18552
}

Semantic roles & 50–950 ramp

primary
#5174CB
secondary
#D5C7A3
accent
#B34ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174CB

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

Preview Lab → · Contrast checker → · Palette generator →

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