#5F97FF#5F97FF

#5F97FF is a light, vivid blue. Relative luminance 0.318; OKLCH L 68.7% C 0.165 H 261.7°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5F97FF
RGBrgb(95, 151, 255)
HSLhsl(219, 100%, 69%)
HSVhsv(219, 63%, 100%)
CMYKcmyk(62.7%, 40.8%, 0%, 0%)
CIE-LABlab(63.16, 13.12, -57.23)
CIE-LCHlch(63.16, 58.71, 282.91°)
OKLaboklab(68.66% -0.0238 -0.163)
OKLCHoklch(68.66% 0.165 261.7)
XYZxyz(33.8296, 31.7830, 98.9403)
Luminance0.3179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97FF #FFC75F
analogous
#5FE7FF #5F97FF #775FFF
triadic
#5F97FF #FF5F97 #97FF5F
tetradic
#5F97FF #FF5FE7 #FFC75F #5FFF77
square
#5F97FF #FF5FE7 #FFC75F #5FFF77
split-complementary
#5F97FF #FF775F #E7FF5F
monochromatic
#0050E4 #226FFF #5F97FF #9CBFFF #D9E7FF

Accessibility & contrast

On white

2.85
#5F97FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#5F97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97FF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97FF#FFFFFF#000000##000000
##5F97FF1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#68A1FF
Deuteranopia (green-blind)
#5092FD
Tritanopia (blue-blind)
#00AFBF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5f97ff;
/* rgb */ color: rgb(95, 151, 255);
/* oklch */ color: oklch(68.7% 0.165 261.7);
Tailwind
colors: {
  custom: {
    50: '#9ab5ff',
    500: '#5f97ff',
    950: '#000000',
  },
}
SCSS
$custom: #5f97ff;
$custom-light: #9ab5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97ff",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 219,
    "s": 100,
    "l": 68.627
  },
  "oklch": {
    "l": 0.6866,
    "c": 0.16476,
    "h": 261.7
  },
  "luminance": 0.31786
}

Semantic roles & 50–950 ramp

primary
#5F97FF
secondary
#F5E4C5
accent
#9500E6
background
#FAFBFF
surface
#F4F6FF
border
#CED0D7
text
#0F1118
muted
#7F8086

Preview Lab

Preview with #5F97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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