#5175CA#5175CA

#5175CA is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.7% C 0.137 H 265.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5175CA
RGBrgb(81, 117, 202)
HSLhsl(222, 53%, 55%)
HSVhsv(222, 60%, 79%)
CMYKcmyk(59.9%, 42.1%, 0%, 20.8%)
CIE-LABlab(50.38, 13.32, -48.06)
CIE-LCHlch(50.38, 49.88, 285.49°)
OKLaboklab(57.67% -0.0117 -0.1368)
OKLCHoklch(57.67% 0.137 265.1)
XYZxyz(20.4116, 18.7345, 58.4061)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175CA #CAA651
analogous
#51B1CA #5175CA #6951CA
triadic
#5175CA #CA5175 #75CA51
tetradic
#5175CA #CA51B1 #CAA651 #51CA69
square
#5175CA #CA51B1 #CAA651 #51CA69
split-complementary
#5175CA #CA6951 #B1CA51
monochromatic
#253F7B #3457AA #5175CA #809AD8 #AFBFE7

Accessibility & contrast

On white

4.42
#5175CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5175CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175CA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175CA#FFFFFF#000000##000000
##5175CA1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7ECD
Deuteranopia (green-blind)
#3E73C8
Tritanopia (blue-blind)
#008896
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5175ca;
/* rgb */ color: rgb(81, 117, 202);
/* oklch */ color: oklch(57.7% 0.137 265.1);
Tailwind
colors: {
  custom: {
    50: '#8c9cda',
    500: '#5175ca',
    950: '#000000',
  },
}
SCSS
$custom: #5175ca;
$custom-light: #8c9cda;
$custom-dark: #000000;
JSON
{
  "hex": "#5175ca",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 202
  },
  "hsl": {
    "h": 222.149,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57673,
    "c": 0.13731,
    "h": 265.1
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5175CA

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

Preview Lab → · Contrast checker → · Palette generator →

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