#5F8AFE#5F8AFE

#5F8AFE is a light, vivid blue. Relative luminance 0.278; OKLCH L 66.0% C 0.178 H 266.3°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5F8AFE
RGBrgb(95, 138, 254)
HSLhsl(224, 99%, 68%)
HSVhsv(224, 63%, 100%)
CMYKcmyk(62.6%, 45.7%, 0%, 0.4%)
CIE-LABlab(59.67, 20.53, -62.26)
CIE-LCHlch(59.67, 65.56, 288.25°)
OKLaboklab(65.96% -0.0115 -0.178)
OKLCHoklch(65.96% 0.178 266.3)
XYZxyz(31.6910, 27.7628, 97.4354)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8AFE #FED35F
analogous
#5FD9FE #5F8AFE #835FFE
triadic
#5F8AFE #FE5F8A #8AFE5F
tetradic
#5F8AFE #FE5FD9 #FED35F #5FFE83
square
#5F8AFE #FE5FD9 #FED35F #5FFE83
split-complementary
#5F8AFE #FE835F #D9FE5F
monochromatic
#013EE1 #225EFE #5F8AFE #9CB6FE #D9E3FF

Accessibility & contrast

On white

3.20
#5F8AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#5F8AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8AFE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8AFE#FFFFFF#000000##000000
##5F8AFE1.003.206.556.55
#FFFFFF3.201.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5197FF
Deuteranopia (green-blind)
#3489FC
Tritanopia (blue-blind)
#00A5B8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #5f8afe;
/* rgb */ color: rgb(95, 138, 254);
/* oklch */ color: oklch(66.0% 0.178 266.3);
Tailwind
colors: {
  custom: {
    50: '#9aabff',
    500: '#5f8afe',
    950: '#000000',
  },
}
SCSS
$custom: #5f8afe;
$custom-light: #9aabff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8afe",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 223.774,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65959,
    "c": 0.17834,
    "h": 266.3
  },
  "luminance": 0.27766
}

Semantic roles & 50–950 ramp

primary
#5F8AFE
secondary
#F4E7C4
accent
#A700E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F1018
muted
#7F7F86

Preview Lab

Preview with #5F8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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