#5175F0#5175F0

#5175F0 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.2% C 0.189 H 268.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5175F0
RGBrgb(81, 117, 240)
HSLhsl(226, 84%, 63%)
HSVhsv(226, 66%, 94%)
CMYKcmyk(66.3%, 51.3%, 0%, 5.9%)
CIE-LABlab(52.69, 26.32, -65.79)
CIE-LCHlch(52.69, 70.86, 291.81°)
OKLaboklab(60.18% -0.0065 -0.1889)
OKLCHoklch(60.18% 0.189 268)
XYZxyz(25.4774, 20.7608, 85.0857)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175F0 #F0CC51
analogous
#51C4F0 #5175F0 #7C51F0
triadic
#5175F0 #F05175 #75F051
tetradic
#5175F0 #F051C4 #F0CC51 #51F07C
square
#5175F0 #F051C4 #F0CC51 #51F07C
split-complementary
#5175F0 #F07C51 #C4F051
monochromatic
#1036B7 #1948EB #5175F0 #89A2F5 #C2CEFA

Accessibility & contrast

On white

4.08
#5175F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5175F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175F0
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175F0#FFFFFF#000000##000000
##5175F01.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2885F4
Deuteranopia (green-blind)
#0077ED
Tritanopia (blue-blind)
#0092A7
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5175f0;
/* rgb */ color: rgb(81, 117, 240);
/* oklch */ color: oklch(60.2% 0.189 268.0);
Tailwind
colors: {
  custom: {
    50: '#929cf6',
    500: '#5175f0',
    950: '#000000',
  },
}
SCSS
$custom: #5175f0;
$custom-light: #929cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5175f0",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 240
  },
  "hsl": {
    "h": 226.415,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6018,
    "c": 0.18904,
    "h": 268
  },
  "luminance": 0.20763
}

Semantic roles & 50–950 ramp

primary
#5175F0
secondary
#EBDEB2
accent
#AF05E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5175F0

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

Preview Lab → · Contrast checker → · Palette generator →

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