#5F97F9#5F97F9

#5F97F9 is a light, vivid blue. Relative luminance 0.314; OKLCH L 68.3% C 0.157 H 260.8°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F97F9
RGBrgb(95, 151, 249)
HSLhsl(218, 93%, 67%)
HSVhsv(218, 62%, 98%)
CMYKcmyk(61.8%, 39.4%, 0%, 2.4%)
CIE-LABlab(62.85, 11.14, -54.45)
CIE-LCHlch(62.85, 55.58, 281.56°)
OKLaboklab(68.31% -0.025 -0.1549)
OKLCHoklch(68.31% 0.157 260.8)
XYZxyz(32.8788, 31.4027, 93.9328)
Luminance0.3141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97F9 #F9C15F
analogous
#5FE4F9 #5F97F9 #745FF9
triadic
#5F97F9 #F95F97 #97F95F
tetradic
#5F97F9 #F95FE4 #F9C15F #5FF974
square
#5F97F9 #F95FE4 #F9C15F #5FF974
split-complementary
#5F97F9 #F9745F #E4F95F
monochromatic
#0853D6 #2471F7 #5F97F9 #9ABDFB #D5E4FD

Accessibility & contrast

On white

2.88
#5F97F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#5F97F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97F9
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97F9#FFFFFF#000000##000000
##5F97F91.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA0FD
Deuteranopia (green-blind)
#5691F7
Tritanopia (blue-blind)
#00ADBC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #5f97f9;
/* rgb */ color: rgb(95, 151, 249);
/* oklch */ color: oklch(68.3% 0.157 260.8);
Tailwind
colors: {
  custom: {
    50: '#99b5fc',
    500: '#5f97f9',
    950: '#000000',
  },
}
SCSS
$custom: #5f97f9;
$custom-light: #99b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97f9",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 218.182,
    "s": 92.771,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68312,
    "c": 0.15689,
    "h": 260.8
  },
  "luminance": 0.31406
}

Semantic roles & 50–950 ramp

primary
#5F97F9
secondary
#F2E0C2
accent
#9200E6
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F97F9

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

Preview Lab → · Contrast checker → · Palette generator →

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