#5F81FE#5F81FE

#5F81FE is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.2% C 0.189 H 269.1°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5F81FE
RGBrgb(95, 129, 254)
HSLhsl(227, 99%, 68%)
HSVhsv(227, 63%, 100%)
CMYKcmyk(62.6%, 49.2%, 0%, 0.4%)
CIE-LABlab(57.35, 25.96, -65.99)
CIE-LCHlch(57.35, 70.91, 291.47°)
OKLaboklab(64.19% -0.0031 -0.189)
OKLCHoklch(64.19% 0.189 269.1)
XYZxyz(30.4529, 25.2865, 97.0227)
Luminance0.2529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81FE #FEDC5F
analogous
#5FD0FE #5F81FE #8C5FFE
triadic
#5F81FE #FE5F81 #81FE5F
tetradic
#5F81FE #FE5FD0 #FEDC5F #5FFE8C
square
#5F81FE #FE5FD0 #FEDC5F #5FFE8C
split-complementary
#5F81FE #FE8C5F #D0FE5F
monochromatic
#0131E1 #2251FE #5F81FE #9CB1FE #D9E1FF

Accessibility & contrast

On white

3.47
#5F81FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#5F81FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81FE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81FE#FFFFFF#000000##000000
##5F81FE1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C91FF
Deuteranopia (green-blind)
#1083FB
Tritanopia (blue-blind)
#009EB3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5f81fe;
/* rgb */ color: rgb(95, 129, 254);
/* oklch */ color: oklch(64.2% 0.189 269.1);
Tailwind
colors: {
  custom: {
    50: '#9aa5ff',
    500: '#5f81fe',
    950: '#000000',
  },
}
SCSS
$custom: #5f81fe;
$custom-light: #9aa5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81fe",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 254
  },
  "hsl": {
    "h": 227.17,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64191,
    "c": 0.18907,
    "h": 269.1
  },
  "luminance": 0.25289
}

Semantic roles & 50–950 ramp

primary
#5F81FE
secondary
#F4EAC4
accent
#B400E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5F81FE

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

Preview Lab → · Contrast checker → · Palette generator →

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