#5F98ED#5F98ED

#5F98ED is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.9% C 0.140 H 258.2°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F98ED
RGBrgb(95, 152, 237)
HSLhsl(216, 80%, 65%)
HSVhsv(216, 60%, 93%)
CMYKcmyk(59.9%, 35.9%, 0%, 7.1%)
CIE-LABlab(62.51, 6.62, -48.39)
CIE-LCHlch(62.51, 48.84, 277.79°)
OKLaboklab(67.85% -0.0287 -0.1371)
OKLCHoklch(67.85% 0.14 258.2)
XYZxyz(31.2282, 31.0010, 84.4425)
Luminance0.3100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98ED #EDB45F
analogous
#5FDFED #5F98ED #6D5FED
triadic
#5F98ED #ED5F98 #98ED5F
tetradic
#5F98ED #ED5FDF #EDB45F #5FED6D
square
#5F98ED #ED5FDF #EDB45F #5FED6D
split-complementary
#5F98ED #ED6D5F #DFED5F
monochromatic
#1558BC #2875E7 #5F98ED #96BBF3 #CDDFF9

Accessibility & contrast

On white

2.92
#5F98ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#5F98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98ED
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98ED#FFFFFF#000000##000000
##5F98ED1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EF0
Deuteranopia (green-blind)
#6191EB
Tritanopia (blue-blind)
#00ABB7
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5f98ed;
/* rgb */ color: rgb(95, 152, 237);
/* oklch */ color: oklch(67.9% 0.140 258.2);
Tailwind
colors: {
  custom: {
    50: '#97b5f3',
    500: '#5f98ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f98ed;
$custom-light: #97b5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98ed",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 215.915,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67851,
    "c": 0.14012,
    "h": 258.2
  },
  "luminance": 0.31004
}

Semantic roles & 50–950 ramp

primary
#5F98ED
secondary
#ECD9BC
accent
#8809DC
background
#F9FBFE
surface
#F2F6FD
border
#CCD0D5
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5F98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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