#5F98F5#5F98F5

#5F98F5 is a light, vivid blue. Relative luminance 0.315; OKLCH L 68.3% C 0.151 H 259.7°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5F98F5
RGBrgb(95, 152, 245)
HSLhsl(217, 88%, 67%)
HSVhsv(217, 61%, 96%)
CMYKcmyk(61.2%, 38%, 0%, 3.9%)
CIE-LABlab(62.91, 9.23, -52.16)
CIE-LCHlch(62.91, 52.97, 280.04°)
OKLaboklab(68.29% -0.0268 -0.1481)
OKLCHoklch(68.29% 0.151 259.7)
XYZxyz(32.4232, 31.4790, 90.7359)
Luminance0.3148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98F5 #F5BC5F
analogous
#5FE3F5 #5F98F5 #715FF5
triadic
#5F98F5 #F55F98 #98F55F
tetradic
#5F98F5 #F55FE3 #F5BC5F #5FF571
square
#5F98F5 #F55FE3 #F5BC5F #5FF571
split-complementary
#5F98F5 #F5715F #E3F55F
monochromatic
#0D56CD #2573F1 #5F98F5 #99BDF9 #D2E2FC

Accessibility & contrast

On white

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

On black

7.30
#5F98F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98F5
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98F5#FFFFFF#000000##000000
##5F98F51.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F9
Deuteranopia (green-blind)
#5B92F3
Tritanopia (blue-blind)
#00ADBB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #5f98f5;
/* rgb */ color: rgb(95, 152, 245);
/* oklch */ color: oklch(68.3% 0.151 259.7);
Tailwind
colors: {
  custom: {
    50: '#99b5f9',
    500: '#5f98f5',
    950: '#000000',
  },
}
SCSS
$custom: #5f98f5;
$custom-light: #99b5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98f5",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 245
  },
  "hsl": {
    "h": 217.2,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68294,
    "c": 0.15056,
    "h": 259.7
  },
  "luminance": 0.31482
}

Semantic roles & 50–950 ramp

primary
#5F98F5
secondary
#F0DEC0
accent
#8E01E5
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F98F5

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

Preview Lab → · Contrast checker → · Palette generator →

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