#5F97ED#5F97ED

#5F97ED is a light, vivid blue. Relative luminance 0.307; OKLCH L 67.6% C 0.141 H 258.7°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5F97ED
RGBrgb(95, 151, 237)
HSLhsl(216, 80%, 65%)
HSVhsv(216, 60%, 93%)
CMYKcmyk(59.9%, 36.3%, 0%, 7.1%)
CIE-LABlab(62.23, 7.20, -48.82)
CIE-LCHlch(62.23, 49.35, 278.39°)
OKLaboklab(67.64% -0.0276 -0.1384)
OKLCHoklch(67.64% 0.141 258.7)
XYZxyz(31.0666, 30.6778, 84.3886)
Luminance0.3068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97ED #EDB55F
analogous
#5FDEED #5F97ED #6E5FED
triadic
#5F97ED #ED5F97 #97ED5F
tetradic
#5F97ED #ED5FDE #EDB55F #5FED6E
square
#5F97ED #ED5FDE #EDB55F #5FED6E
split-complementary
#5F97ED #ED6E5F #DEED5F
monochromatic
#1557BC #2873E7 #5F97ED #96BBF3 #CDDFF9

Accessibility & contrast

On white

2.94
#5F97ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#5F97ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97ED
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97ED#FFFFFF#000000##000000
##5F97ED1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF1
Deuteranopia (green-blind)
#5F90EB
Tritanopia (blue-blind)
#00AAB7
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5f97ed;
/* rgb */ color: rgb(95, 151, 237);
/* oklch */ color: oklch(67.6% 0.141 258.7);
Tailwind
colors: {
  custom: {
    50: '#97b5f3',
    500: '#5f97ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f97ed;
$custom-light: #97b5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97ed",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 237
  },
  "hsl": {
    "h": 216.338,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67638,
    "c": 0.14115,
    "h": 258.7
  },
  "luminance": 0.30681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F97ED

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

Preview Lab → · Contrast checker → · Palette generator →

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