#5F8DEF#5F8DEF

#5F8DEF is a light, vivid blue. Relative luminance 0.277; OKLCH L 65.7% C 0.155 H 263.7°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5F8DEF
RGBrgb(95, 141, 239)
HSLhsl(221, 82%, 65%)
HSVhsv(221, 60%, 94%)
CMYKcmyk(60.3%, 41%, 0%, 6.3%)
CIE-LABlab(59.63, 13.76, -54.07)
CIE-LCHlch(59.63, 55.79, 284.28°)
OKLaboklab(65.65% -0.0169 -0.1539)
OKLCHoklch(65.65% 0.155 263.7)
XYZxyz(29.8188, 27.7120, 85.4222)
Luminance0.2772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8DEF #EFC15F
analogous
#5FD5EF #5F8DEF #795FEF
triadic
#5F8DEF #EF5F8D #8DEF5F
tetradic
#5F8DEF #EF5FD5 #EFC15F #5FEF79
square
#5F8DEF #EF5FD5 #EFC15F #5FEF79
split-complementary
#5F8DEF #EF795F #D5EF5F
monochromatic
#134BC0 #2765E9 #5F8DEF #97B5F5 #CEDCFA

Accessibility & contrast

On white

3.21
#5F8DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#5F8DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8DEF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8DEF#FFFFFF#000000##000000
##5F8DEF1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#4D89ED
Tritanopia (blue-blind)
#00A3B2
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #5f8def;
/* rgb */ color: rgb(95, 141, 239);
/* oklch */ color: oklch(65.7% 0.155 263.7);
Tailwind
colors: {
  custom: {
    50: '#98adf5',
    500: '#5f8def',
    950: '#000000',
  },
}
SCSS
$custom: #5f8def;
$custom-light: #98adf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8def",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 239
  },
  "hsl": {
    "h": 220.833,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65652,
    "c": 0.15481,
    "h": 263.7
  },
  "luminance": 0.27715
}

Semantic roles & 50–950 ramp

primary
#5F8DEF
secondary
#EDDEBD
accent
#9A07DE
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0F1017
muted
#7E7F85

Preview Lab

Preview with #5F8DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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