#5F7CD5#5F7CD5

#5F7CD5 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.6% C 0.139 H 268.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F7CD5
RGBrgb(95, 124, 213)
HSLhsl(225, 58%, 60%)
HSVhsv(225, 55%, 84%)
CMYKcmyk(55.4%, 41.8%, 0%, 16.5%)
CIE-LABlab(53.65, 15.50, -49.04)
CIE-LCHlch(53.65, 51.44, 287.54°)
OKLaboklab(60.6% -0.0038 -0.1393)
OKLCHoklch(60.6% 0.139 268.4)
XYZxyz(23.9332, 21.6505, 65.8557)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CD5 #D5B85F
analogous
#5FB7D5 #5F7CD5 #7D5FD5
triadic
#5F7CD5 #D55F7C #7CD55F
tetradic
#5F7CD5 #D55FB7 #D5B85F #5FD57D
square
#5F7CD5 #D55FB7 #D5B85F #5FD57D
split-complementary
#5F7CD5 #D57D5F #B7D55F
monochromatic
#274193 #3357C3 #5F7CD5 #8FA4E2 #C0CBEE

Accessibility & contrast

On white

3.94
#5F7CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5F7CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CD5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CD5#FFFFFF#000000##000000
##5F7CD51.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5686D8
Deuteranopia (green-blind)
#477BD3
Tritanopia (blue-blind)
#18909E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f7cd5;
/* rgb */ color: rgb(95, 124, 213);
/* oklch */ color: oklch(60.6% 0.139 268.4);
Tailwind
colors: {
  custom: {
    50: '#95a1e2',
    500: '#5f7cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cd5;
$custom-light: #95a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cd5",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 213
  },
  "hsl": {
    "h": 225.254,
    "s": 58.416,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60597,
    "c": 0.13939,
    "h": 268.4
  },
  "luminance": 0.21652
}

Semantic roles & 50–950 ramp

primary
#5F7CD5
secondary
#DED3B1
accent
#9D1FC6
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F7CD5

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

Preview Lab → · Contrast checker → · Palette generator →

#5F7CD5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva