#5F7CCF#5F7CCF

#5F7CCF is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.2% C 0.131 H 267.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5F7CCF
RGBrgb(95, 124, 207)
HSLhsl(224, 54%, 59%)
HSVhsv(224, 54%, 81%)
CMYKcmyk(54.1%, 40.1%, 0%, 18.8%)
CIE-LABlab(53.33, 13.57, -46.16)
CIE-LCHlch(53.33, 48.11, 286.38°)
OKLaboklab(60.24% -0.005 -0.1309)
OKLCHoklch(60.24% 0.131 267.8)
XYZxyz(23.1857, 21.3515, 61.9188)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CCF #CFB25F
analogous
#5FB4CF #5F7CCF #7A5FCF
triadic
#5F7CCF #CF5F7C #7CCF5F
tetradic
#5F7CCF #CF5FB4 #CFB25F #5FCF7A
square
#5F7CCF #CF5FB4 #CFB25F #5FCF7A
split-complementary
#5F7CCF #CF7A5F #B4CF5F
monochromatic
#29428A #3859B9 #5F7CCF #8EA3DD #BDC9EB

Accessibility & contrast

On white

3.98
#5F7CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5F7CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CCF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CCF#FFFFFF#000000##000000
##5F7CCF1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A85D2
Deuteranopia (green-blind)
#4D7BCD
Tritanopia (blue-blind)
#238E9B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f7ccf;
/* rgb */ color: rgb(95, 124, 207);
/* oklch */ color: oklch(60.2% 0.131 267.8);
Tailwind
colors: {
  custom: {
    50: '#94a1de',
    500: '#5f7ccf',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ccf;
$custom-light: #94a1de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ccf",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 207
  },
  "hsl": {
    "h": 224.464,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60244,
    "c": 0.13098,
    "h": 267.8
  },
  "luminance": 0.21353
}

Semantic roles & 50–950 ramp

primary
#5F7CCF
secondary
#DBCFAF
accent
#B74BDD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F7CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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