#5F97EC#5F97EC

#5F97EC is a light, vivid blue. Relative luminance 0.306; OKLCH L 67.6% C 0.140 H 258.5°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5F97EC
RGBrgb(95, 151, 236)
HSLhsl(216, 79%, 65%)
HSVhsv(216, 60%, 93%)
CMYKcmyk(59.7%, 36%, 0%, 7.5%)
CIE-LABlab(62.19, 6.88, -48.35)
CIE-LCHlch(62.19, 48.84, 278.09°)
OKLaboklab(67.58% -0.0279 -0.137)
OKLCHoklch(67.58% 0.14 258.5)
XYZxyz(30.9209, 30.6195, 83.6213)
Luminance0.3062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97EC #ECB45F
analogous
#5FDEEC #5F97EC #6D5FEC
triadic
#5F97EC #EC5F97 #97EC5F
tetradic
#5F97EC #EC5FDE #ECB45F #5FEC6D
square
#5F97EC #EC5FDE #ECB45F #5FEC6D
split-complementary
#5F97EC #EC6D5F #DEEC5F
monochromatic
#1657BA #2873E6 #5F97EC #96BBF2 #CCDEF9

Accessibility & contrast

On white

2.95
#5F97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#5F97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97EC
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97EC#FFFFFF#000000##000000
##5F97EC1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#739EEF
Deuteranopia (green-blind)
#6090EA
Tritanopia (blue-blind)
#00AAB6
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5f97ec;
/* rgb */ color: rgb(95, 151, 236);
/* oklch */ color: oklch(67.6% 0.140 258.5);
Tailwind
colors: {
  custom: {
    50: '#97b5f2',
    500: '#5f97ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f97ec;
$custom-light: #97b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97ec",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 216.17,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67583,
    "c": 0.13985,
    "h": 258.5
  },
  "luminance": 0.30622
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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