#5F7CD8#5F7CD8

#5F7CD8 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.8% C 0.144 H 268.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F7CD8
RGBrgb(95, 124, 216)
HSLhsl(226, 61%, 61%)
HSVhsv(226, 56%, 85%)
CMYKcmyk(56%, 42.6%, 0%, 15.3%)
CIE-LABlab(53.82, 16.47, -50.48)
CIE-LCHlch(53.82, 53.10, 288.08°)
OKLaboklab(60.78% -0.0033 -0.1435)
OKLCHoklch(60.78% 0.144 268.7)
XYZxyz(24.3175, 21.8042, 67.8796)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CD8 #D8BB5F
analogous
#5FB8D8 #5F7CD8 #7E5FD8
triadic
#5F7CD8 #D85F7C #7CD85F
tetradic
#5F7CD8 #D85FB8 #D8BB5F #5FD87E
square
#5F7CD8 #D85FB8 #D8BB5F #5FD87E
split-complementary
#5F7CD8 #D87E5F #B8D85F
monochromatic
#254098 #3155C9 #5F7CD8 #90A4E4 #C1CDF0

Accessibility & contrast

On white

3.92
#5F7CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5F7CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CD8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CD8#FFFFFF#000000##000000
##5F7CD81.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5486DC
Deuteranopia (green-blind)
#457CD6
Tritanopia (blue-blind)
#11909F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f7cd8;
/* rgb */ color: rgb(95, 124, 216);
/* oklch */ color: oklch(60.8% 0.144 268.7);
Tailwind
colors: {
  custom: {
    50: '#95a1e4',
    500: '#5f7cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cd8;
$custom-light: #95a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cd8",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 225.62,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60776,
    "c": 0.14357,
    "h": 268.7
  },
  "luminance": 0.21806
}

Semantic roles & 50–950 ramp

primary
#5F7CD8
secondary
#E0D5B3
accent
#9F1DC8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F7CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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