#5F8DFD#5F8DFD

#5F8DFD is a light, vivid blue. Relative luminance 0.286; OKLCH L 66.5% C 0.173 H 265.2°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5F8DFD
RGBrgb(95, 141, 253)
HSLhsl(223, 98%, 68%)
HSVhsv(223, 62%, 99%)
CMYKcmyk(62.5%, 44.3%, 0%, 0.8%)
CIE-LABlab(60.40, 18.40, -60.54)
CIE-LCHlch(60.40, 63.28, 286.91°)
OKLaboklab(66.5% -0.0145 -0.1729)
OKLCHoklch(66.5% 0.174 265.2)
XYZxyz(31.9677, 28.5716, 96.7397)
Luminance0.2857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8DFD #FDCF5F
analogous
#5FDCFD #5F8DFD #805FFD
triadic
#5F8DFD #FD5F8D #8DFD5F
tetradic
#5F8DFD #FD5FDC #FDCF5F #5FFD80
square
#5F8DFD #FD5FDC #FDCF5F #5FFD80
split-complementary
#5F8DFD #FD805F #DCFD5F
monochromatic
#0343DF #2362FC #5F8DFD #9BB8FE #D8E3FF

Accessibility & contrast

On white

3.13
#5F8DFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#5F8DFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8DFD
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8DFD#FFFFFF#000000##000000
##5F8DFD1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#3D8BFB
Tritanopia (blue-blind)
#00A7B9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #5f8dfd;
/* rgb */ color: rgb(95, 141, 253);
/* oklch */ color: oklch(66.5% 0.173 265.2);
Tailwind
colors: {
  custom: {
    50: '#9aadff',
    500: '#5f8dfd',
    950: '#000000',
  },
}
SCSS
$custom: #5f8dfd;
$custom-light: #9aadff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8dfd",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 222.532,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66498,
    "c": 0.1735,
    "h": 265.2
  },
  "luminance": 0.28574
}

Semantic roles & 50–950 ramp

primary
#5F8DFD
secondary
#F4E6C4
accent
#A300E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F1018
muted
#7F7F86

Preview Lab

Preview with #5F8DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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