#5F8AF8#5F8AF8

#5F8AF8 is a light, vivid blue. Relative luminance 0.274; OKLCH L 65.6% C 0.170 H 265.8°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5F8AF8
RGBrgb(95, 138, 248)
HSLhsl(223, 92%, 67%)
HSVhsv(223, 62%, 97%)
CMYKcmyk(61.7%, 44.4%, 0%, 2.7%)
CIE-LABlab(59.33, 18.54, -59.51)
CIE-LCHlch(59.33, 62.33, 287.30°)
OKLaboklab(65.58% -0.0124 -0.1699)
OKLCHoklch(65.58% 0.17 265.8)
XYZxyz(30.7452, 27.3844, 92.4542)
Luminance0.2739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8AF8 #F8CD5F
analogous
#5FD7F8 #5F8AF8 #805FF8
triadic
#5F8AF8 #F85F8A #8AF85F
tetradic
#5F8AF8 #F85FD7 #F8CD5F #5FF880
square
#5F8AF8 #F85FD7 #F8CD5F #5FF880
split-complementary
#5F8AF8 #F8805F #D7F85F
monochromatic
#0942D3 #245FF5 #5F8AF8 #9AB5FB #D4E0FD

Accessibility & contrast

On white

3.24
#5F8AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#5F8AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8AF8
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8AF8#FFFFFF#000000##000000
##5F8AF81.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5696FC
Deuteranopia (green-blind)
#3D88F6
Tritanopia (blue-blind)
#00A3B5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #5f8af8;
/* rgb */ color: rgb(95, 138, 248);
/* oklch */ color: oklch(65.6% 0.170 265.8);
Tailwind
colors: {
  custom: {
    50: '#99abfb',
    500: '#5f8af8',
    950: '#000000',
  },
}
SCSS
$custom: #5f8af8;
$custom-light: #99abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8af8",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 248
  },
  "hsl": {
    "h": 223.137,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65583,
    "c": 0.17035,
    "h": 265.8
  },
  "luminance": 0.27387
}

Semantic roles & 50–950 ramp

primary
#5F8AF8
secondary
#F2E4C1
accent
#A500E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F1017
muted
#7F7F85

Preview Lab

Preview with #5F8AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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