#5F97F5#5F97F5

#5F97F5 is a light, vivid blue. Relative luminance 0.312; OKLCH L 68.1% C 0.152 H 260.2°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F97F5
RGBrgb(95, 151, 245)
HSLhsl(218, 88%, 67%)
HSVhsv(218, 61%, 96%)
CMYKcmyk(61.2%, 38.4%, 0%, 3.9%)
CIE-LABlab(62.64, 9.82, -52.59)
CIE-LCHlch(62.64, 53.49, 280.58°)
OKLaboklab(68.08% -0.0258 -0.1494)
OKLCHoklch(68.08% 0.152 260.2)
XYZxyz(32.2616, 31.1558, 90.6820)
Luminance0.3116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97F5 #F5BD5F
analogous
#5FE2F5 #5F97F5 #725FF5
triadic
#5F97F5 #F55F97 #97F55F
tetradic
#5F97F5 #F55FE2 #F5BD5F #5FF572
square
#5F97F5 #F55FE2 #F5BD5F #5FF572
split-complementary
#5F97F5 #F5725F #E2F55F
monochromatic
#0D54CD #2572F1 #5F97F5 #99BCF9 #D2E2FC

Accessibility & contrast

On white

2.90
#5F97F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#5F97F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97F5
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97F5#FFFFFF#000000##000000
##5F97F51.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9FF9
Deuteranopia (green-blind)
#5991F3
Tritanopia (blue-blind)
#00ACBA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5f97f5;
/* rgb */ color: rgb(95, 151, 245);
/* oklch */ color: oklch(68.1% 0.152 260.2);
Tailwind
colors: {
  custom: {
    50: '#99b5f9',
    500: '#5f97f5',
    950: '#000000',
  },
}
SCSS
$custom: #5f97f5;
$custom-light: #99b5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97f5",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 245
  },
  "hsl": {
    "h": 217.6,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68084,
    "c": 0.15164,
    "h": 260.2
  },
  "luminance": 0.31159
}

Semantic roles & 50–950 ramp

primary
#5F97F5
secondary
#F0DEC0
accent
#9001E5
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F97F5

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

Preview Lab → · Contrast checker → · Palette generator →

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