#5F8CFB#5F8CFB

#5F8CFB is a light, vivid blue. Relative luminance 0.282; OKLCH L 66.2% C 0.172 H 265.4°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5F8CFB
RGBrgb(95, 140, 251)
HSLhsl(223, 95%, 68%)
HSVhsv(223, 62%, 98%)
CMYKcmyk(62.2%, 44.2%, 0%, 1.6%)
CIE-LABlab(60.03, 18.33, -60.05)
CIE-LCHlch(60.03, 62.78, 286.98°)
OKLaboklab(66.17% -0.0138 -0.1714)
OKLCHoklch(66.17% 0.172 265.4)
XYZxyz(31.5040, 28.1513, 95.0216)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8CFB #FBCE5F
analogous
#5FDAFB #5F8CFB #805FFB
triadic
#5F8CFB #FB5F8C #8CFB5F
tetradic
#5F8CFB #FB5FDA #FBCE5F #5FFB80
square
#5F8CFB #FB5FDA #FBCE5F #5FFB80
split-complementary
#5F8CFB #FB805F #DAFB5F
monochromatic
#0543DA #2361FA #5F8CFB #9BB7FC #D6E2FE

Accessibility & contrast

On white

3.17
#5F8CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#5F8CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8CFB
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8CFB#FFFFFF#000000##000000
##5F8CFB1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FF
Deuteranopia (green-blind)
#3E8AF9
Tritanopia (blue-blind)
#00A5B7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5f8cfb;
/* rgb */ color: rgb(95, 140, 251);
/* oklch */ color: oklch(66.2% 0.172 265.4);
Tailwind
colors: {
  custom: {
    50: '#9aadfd',
    500: '#5f8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #5f8cfb;
$custom-light: #9aadfd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8cfb",
  "rgb": {
    "r": 95,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 222.692,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66173,
    "c": 0.17201,
    "h": 265.4
  },
  "luminance": 0.28154
}

Semantic roles & 50–950 ramp

primary
#5F8CFB
secondary
#F3E5C3
accent
#A300E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F1018
muted
#7F7F86

Preview Lab

Preview with #5F8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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