#5175CC#5175CC

#5175CC is a mid, vivid blue. Relative luminance 0.188; OKLCH L 57.8% C 0.140 H 265.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5175CC
RGBrgb(81, 117, 204)
HSLhsl(222, 55%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.3%, 42.6%, 0%, 20%)
CIE-LABlab(50.49, 14.00, -49.03)
CIE-LCHlch(50.49, 50.99, 285.94°)
OKLaboklab(57.8% -0.0114 -0.1396)
OKLCHoklch(57.8% 0.14 265.3)
XYZxyz(20.6500, 18.8298, 59.6613)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175CC #CCA851
analogous
#51B2CC #5175CC #6A51CC
triadic
#5175CC #CC5175 #75CC51
tetradic
#5175CC #CC51B2 #CCA851 #51CC6A
square
#5175CC #CC51B2 #CCA851 #51CC6A
split-complementary
#5175CC #CC6A51 #B2CC51
monochromatic
#253F7E #3357AD #5175CC #809BDA #B0C0E8

Accessibility & contrast

On white

4.41
#5175CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5175CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175CC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175CC#FFFFFF#000000##000000
##5175CC1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7ECF
Deuteranopia (green-blind)
#3C73CA
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5175cc;
/* rgb */ color: rgb(81, 117, 204);
/* oklch */ color: oklch(57.8% 0.140 265.3);
Tailwind
colors: {
  custom: {
    50: '#8c9cdc',
    500: '#5175cc',
    950: '#000000',
  },
}
SCSS
$custom: #5175cc;
$custom-light: #8c9cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5175cc",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 204
  },
  "hsl": {
    "h": 222.439,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57796,
    "c": 0.14009,
    "h": 265.3
  },
  "luminance": 0.18832
}

Semantic roles & 50–950 ramp

primary
#5175CC
secondary
#D6C7A3
accent
#B34ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5175CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva