#5174CA#5174CA

#5174CA is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.5% C 0.139 H 265.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5174CA
RGBrgb(81, 116, 202)
HSLhsl(223, 53%, 55%)
HSVhsv(223, 60%, 79%)
CMYKcmyk(59.9%, 42.6%, 0%, 20.8%)
CIE-LABlab(50.10, 13.94, -48.50)
CIE-LCHlch(50.10, 50.47, 286.03°)
OKLaboklab(57.46% -0.0107 -0.1381)
OKLCHoklch(57.46% 0.139 265.6)
XYZxyz(20.2958, 18.5027, 58.3675)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174CA #CAA751
analogous
#51B0CA #5174CA #6B51CA
triadic
#5174CA #CA5174 #74CA51
tetradic
#5174CA #CA51B0 #CAA751 #51CA6B
square
#5174CA #CA51B0 #CAA751 #51CA6B
split-complementary
#5174CA #CA6B51 #B0CA51
monochromatic
#253E7B #3456AA #5174CA #8099D8 #AFBFE7

Accessibility & contrast

On white

4.47
#5174CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5174CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174CA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174CA#FFFFFF#000000##000000
##5174CA1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7DCD
Deuteranopia (green-blind)
#3C72C8
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5174ca;
/* rgb */ color: rgb(81, 116, 202);
/* oklch */ color: oklch(57.5% 0.139 265.6);
Tailwind
colors: {
  custom: {
    50: '#8c9bda',
    500: '#5174ca',
    950: '#000000',
  },
}
SCSS
$custom: #5174ca;
$custom-light: #8c9bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5174ca",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 222.645,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57461,
    "c": 0.13852,
    "h": 265.6
  },
  "luminance": 0.18504
}

Semantic roles & 50–950 ramp

primary
#5174CA
secondary
#D5C6A2
accent
#B34BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174CA

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

Preview Lab → · Contrast checker → · Palette generator →

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