#5F98EC#5F98EC

#5F98EC is a light, vivid blue. Relative luminance 0.309; OKLCH L 67.8% C 0.139 H 258.0°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5F98EC
RGBrgb(95, 152, 236)
HSLhsl(216, 79%, 65%)
HSVhsv(216, 60%, 93%)
CMYKcmyk(59.7%, 35.6%, 0%, 7.5%)
CIE-LABlab(62.46, 6.29, -47.92)
CIE-LCHlch(62.46, 48.33, 277.48°)
OKLaboklab(67.8% -0.0289 -0.1358)
OKLCHoklch(67.8% 0.139 258)
XYZxyz(31.0825, 30.9427, 83.6752)
Luminance0.3095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F98EC #ECB35F
analogous
#5FDEEC #5F98EC #6D5FEC
triadic
#5F98EC #EC5F98 #98EC5F
tetradic
#5F98EC #EC5FDE #ECB35F #5FEC6D
square
#5F98EC #EC5FDE #ECB35F #5FEC6D
split-complementary
#5F98EC #EC6D5F #DEEC5F
monochromatic
#1659BA #2875E6 #5F98EC #96BBF2 #CCDEF9

Accessibility & contrast

On white

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

On black

7.19
#5F98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F98EC
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F98EC#FFFFFF#000000##000000
##5F98EC1.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EEF
Deuteranopia (green-blind)
#6291EA
Tritanopia (blue-blind)
#00ABB7
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5f98ec;
/* rgb */ color: rgb(95, 152, 236);
/* oklch */ color: oklch(67.8% 0.139 258.0);
Tailwind
colors: {
  custom: {
    50: '#97b5f2',
    500: '#5f98ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f98ec;
$custom-light: #97b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f98ec",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 215.745,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67797,
    "c": 0.13881,
    "h": 258
  },
  "luminance": 0.30945
}

Semantic roles & 50–950 ramp

primary
#5F98EC
secondary
#EBD8BB
accent
#870ADB
background
#F9FBFE
surface
#F2F6FD
border
#CCD0D5
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5F98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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