#5F98EF#5F98EF

#5F98EF is a light, vivid blue. Relative luminance 0.311; OKLCH L 68.0% C 0.143 H 258.6°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5F98EF
RGBrgb(95, 152, 239)
HSLhsl(216, 82%, 65%)
HSVhsv(216, 60%, 94%)
CMYKcmyk(60.3%, 36.4%, 0%, 6.3%)
CIE-LABlab(62.61, 7.27, -49.34)
CIE-LCHlch(62.61, 49.87, 278.38°)
OKLaboklab(67.96% -0.0282 -0.1399)
OKLCHoklch(67.96% 0.143 258.6)
XYZxyz(31.5220, 31.1185, 85.9899)
Luminance0.3112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98EF #EFB65F
analogous
#5FE0EF #5F98EF #6E5FEF
triadic
#5F98EF #EF5F98 #98EF5F
tetradic
#5F98EF #EF5FE0 #EFB65F #5FEF6E
square
#5F98EF #EF5FE0 #EFB65F #5FEF6E
split-complementary
#5F98EF #EF6E5F #E0EF5F
monochromatic
#1358C0 #2774E9 #5F98EF #97BCF5 #CEE0FA

Accessibility & contrast

On white

2.91
#5F98EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#5F98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98EF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98EF#FFFFFF#000000##000000
##5F98EF1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#739FF3
Deuteranopia (green-blind)
#5F91ED
Tritanopia (blue-blind)
#00ACB8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5f98ef;
/* rgb */ color: rgb(95, 152, 239);
/* oklch */ color: oklch(68.0% 0.143 258.6);
Tailwind
colors: {
  custom: {
    50: '#98b5f4',
    500: '#5f98ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f98ef;
$custom-light: #98b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98ef",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 216.25,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.67961,
    "c": 0.14273,
    "h": 258.6
  },
  "luminance": 0.31121
}

Semantic roles & 50–950 ramp

primary
#5F98EF
secondary
#EDDABD
accent
#8907DE
background
#F9FBFE
surface
#F2F6FD
border
#CCD0D5
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5F98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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