#5FA1FE#5FA1FE

#5FA1FE is a light, vivid blue. Relative luminance 0.351; OKLCH L 70.7% C 0.153 H 257.2°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5FA1FE
RGBrgb(95, 161, 254)
HSLhsl(215, 99%, 68%)
HSVhsv(215, 63%, 100%)
CMYKcmyk(62.6%, 36.6%, 0%, 0.4%)
CIE-LABlab(65.81, 6.95, -52.48)
CIE-LCHlch(65.81, 52.94, 277.54°)
OKLaboklab(70.69% -0.0338 -0.149)
OKLCHoklch(70.69% 0.153 257.2)
XYZxyz(35.3472, 35.0750, 98.6541)
Luminance0.3508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FA1FE #FEBC5F
analogous
#5FF1FE #5FA1FE #6C5FFE
triadic
#5FA1FE #FE5FA1 #A1FE5F
tetradic
#5FA1FE #FE5FF1 #FEBC5F #5FFE6C
square
#5FA1FE #FE5FF1 #FEBC5F #5FFE6C
split-complementary
#5FA1FE #FE6C5F #F1FE5F
monochromatic
#015EE1 #227DFE #5FA1FE #9CC5FE #D9E8FF

Accessibility & contrast

On white

2.62
#5FA1FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#5FA1FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5FA1FE
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FA1FE#FFFFFF#000000##000000
##5FA1FE1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#6299FC
Tritanopia (blue-blind)
#00B6C3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #5fa1fe;
/* rgb */ color: rgb(95, 161, 254);
/* oklch */ color: oklch(70.7% 0.153 257.2);
Tailwind
colors: {
  custom: {
    50: '#9abcff',
    500: '#5fa1fe',
    950: '#000000',
  },
}
SCSS
$custom: #5fa1fe;
$custom-light: #9abcff;
$custom-dark: #000000;
JSON
{
  "hex": "#5fa1fe",
  "rgb": {
    "r": 95,
    "g": 161,
    "b": 254
  },
  "hsl": {
    "h": 215.094,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70694,
    "c": 0.1528,
    "h": 257.2
  },
  "luminance": 0.35078
}

Semantic roles & 50–950 ramp

primary
#5FA1FE
secondary
#F4E0C4
accent
#8600E6
background
#FAFBFF
surface
#F4F6FF
border
#CED0D7
text
#0F1118
muted
#7F8086

Preview Lab

Preview with #5FA1FE

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

Preview Lab → · Contrast checker → · Palette generator →

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