#5F8CD5#5F8CD5

#5F8CD5 is a light, vivid blue. Relative luminance 0.260; OKLCH L 64.0% C 0.121 H 259.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8CD5
RGBrgb(95, 140, 213)
HSLhsl(217, 58%, 60%)
HSVhsv(217, 55%, 84%)
CMYKcmyk(55.4%, 34.3%, 0%, 16.5%)
CIE-LABlab(58.03, 5.92, -42.12)
CIE-LCHlch(58.03, 42.53, 278.00°)
OKLaboklab(63.98% -0.0216 -0.119)
OKLCHoklch(63.98% 0.121 259.7)
XYZxyz(26.1035, 25.9911, 66.5791)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8CD5 #D5A85F
analogous
#5FC7D5 #5F8CD5 #6D5FD5
triadic
#5F8CD5 #D55F8C #8CD55F
tetradic
#5F8CD5 #D55FC7 #D5A85F #5FD56D
square
#5F8CD5 #D55FC7 #D5A85F #5FD56D
split-complementary
#5F8CD5 #D56D5F #C7D55F
monochromatic
#275093 #336AC3 #5F8CD5 #8FAFE2 #C0D2EE

Accessibility & contrast

On white

3.39
#5F8CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#5F8CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8CD5
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8CD5#FFFFFF#000000##000000
##5F8CD51.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E92D8
Deuteranopia (green-blind)
#6086D3
Tritanopia (blue-blind)
#0F9CA7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5f8cd5;
/* rgb */ color: rgb(95, 140, 213);
/* oklch */ color: oklch(64.0% 0.121 259.7);
Tailwind
colors: {
  custom: {
    50: '#94ade2',
    500: '#5f8cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5f8cd5;
$custom-light: #94ade2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8cd5",
  "rgb": {
    "r": 95,
    "g": 140,
    "b": 213
  },
  "hsl": {
    "h": 217.119,
    "s": 58.416,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6398,
    "c": 0.12091,
    "h": 259.7
  },
  "luminance": 0.25993
}

Semantic roles & 50–950 ramp

primary
#5F8CD5
secondary
#DECDB1
accent
#871FC6
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0E1015
muted
#7E7F83

Preview Lab

Preview with #5F8CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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