#5F7CD7#5F7CD7

#5F7CD7 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.7% C 0.142 H 268.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5F7CD7
RGBrgb(95, 124, 215)
HSLhsl(226, 60%, 61%)
HSVhsv(226, 56%, 84%)
CMYKcmyk(55.8%, 42.3%, 0%, 15.7%)
CIE-LABlab(53.76, 16.15, -50.00)
CIE-LCHlch(53.76, 52.54, 287.90°)
OKLaboklab(60.72% -0.0034 -0.1421)
OKLCHoklch(60.72% 0.142 268.6)
XYZxyz(24.1886, 21.7527, 67.2008)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CD7 #D7BA5F
analogous
#5FB8D7 #5F7CD7 #7E5FD7
triadic
#5F7CD7 #D75F7C #7CD75F
tetradic
#5F7CD7 #D75FB8 #D7BA5F #5FD77E
square
#5F7CD7 #D75FB8 #D7BA5F #5FD77E
split-complementary
#5F7CD7 #D77E5F #B8D75F
monochromatic
#264196 #3256C7 #5F7CD7 #90A4E3 #C1CCEF

Accessibility & contrast

On white

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

On black

5.35
#5F7CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CD7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CD7#FFFFFF#000000##000000
##5F7CD71.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5586DB
Deuteranopia (green-blind)
#467CD5
Tritanopia (blue-blind)
#13909F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f7cd7;
/* rgb */ color: rgb(95, 124, 215);
/* oklch */ color: oklch(60.7% 0.142 268.6);
Tailwind
colors: {
  custom: {
    50: '#95a1e4',
    500: '#5f7cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cd7;
$custom-light: #95a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cd7",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 225.5,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.14218,
    "h": 268.6
  },
  "luminance": 0.21754
}

Semantic roles & 50–950 ramp

primary
#5F7CD7
secondary
#E0D5B2
accent
#9F1EC8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E15
muted
#7E7E84

Preview Lab

Preview with #5F7CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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