#5F98F8#5F98F8

#5F98F8 is a light, vivid blue. Relative luminance 0.317; OKLCH L 68.5% C 0.154 H 260.2°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5F98F8
RGBrgb(95, 152, 248)
HSLhsl(218, 92%, 67%)
HSVhsv(218, 62%, 97%)
CMYKcmyk(61.7%, 38.7%, 0%, 2.7%)
CIE-LABlab(63.06, 10.22, -53.56)
CIE-LCHlch(63.06, 54.52, 280.80°)
OKLaboklab(68.46% -0.0262 -0.1523)
OKLCHoklch(68.46% 0.155 260.2)
XYZxyz(32.8849, 31.6637, 93.1674)
Luminance0.3167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98F8 #F8BF5F
analogous
#5FE5F8 #5F98F8 #735FF8
triadic
#5F98F8 #F85F98 #98F85F
tetradic
#5F98F8 #F85FE5 #F8BF5F #5FF873
square
#5F98F8 #F85FE5 #F8BF5F #5FF873
split-complementary
#5F98F8 #F8735F #E5F85F
monochromatic
#0955D3 #2472F5 #5F98F8 #9ABEFB #D4E3FD

Accessibility & contrast

On white

2.86
#5F98F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#5F98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98F8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98F8#FFFFFF#000000##000000
##5F98F81.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FC
Deuteranopia (green-blind)
#5892F6
Tritanopia (blue-blind)
#00AEBC
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5f98f8;
/* rgb */ color: rgb(95, 152, 248);
/* oklch */ color: oklch(68.5% 0.154 260.2);
Tailwind
colors: {
  custom: {
    50: '#99b5fb',
    500: '#5f98f8',
    950: '#000000',
  },
}
SCSS
$custom: #5f98f8;
$custom-light: #99b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98f8",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 217.647,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.68464,
    "c": 0.1545,
    "h": 260.2
  },
  "luminance": 0.31667
}

Semantic roles & 50–950 ramp

primary
#5F98F8
secondary
#F2E0C1
accent
#9000E6
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1117
muted
#7F8085

Preview Lab

Preview with #5F98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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