#5F81FD#5F81FD

#5F81FD is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.1% C 0.188 H 269.0°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F81FD
RGBrgb(95, 129, 253)
HSLhsl(227, 98%, 68%)
HSVhsv(227, 62%, 99%)
CMYKcmyk(62.5%, 49%, 0%, 0.8%)
CIE-LABlab(57.29, 25.63, -65.53)
CIE-LCHlch(57.29, 70.37, 291.36°)
OKLaboklab(64.13% -0.0031 -0.1877)
OKLCHoklch(64.13% 0.188 269)
XYZxyz(30.2932, 25.2226, 96.1815)
Luminance0.2522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81FD #FDDB5F
analogous
#5FD0FD #5F81FD #8C5FFD
triadic
#5F81FD #FD5F81 #81FD5F
tetradic
#5F81FD #FD5FD0 #FDDB5F #5FFD8C
square
#5F81FD #FD5FD0 #FDDB5F #5FFD8C
split-complementary
#5F81FD #FD8C5F #D0FD5F
monochromatic
#0332DF #2351FC #5F81FD #9BB1FE #D8E0FF

Accessibility & contrast

On white

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

On black

6.04
#5F81FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81FD
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81FD#FFFFFF#000000##000000
##5F81FD1.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D91FF
Deuteranopia (green-blind)
#1483FA
Tritanopia (blue-blind)
#009EB3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5f81fd;
/* rgb */ color: rgb(95, 129, 253);
/* oklch */ color: oklch(64.1% 0.188 269.0);
Tailwind
colors: {
  custom: {
    50: '#9aa5ff',
    500: '#5f81fd',
    950: '#000000',
  },
}
SCSS
$custom: #5f81fd;
$custom-light: #9aa5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81fd",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 253
  },
  "hsl": {
    "h": 227.089,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64125,
    "c": 0.18776,
    "h": 269
  },
  "luminance": 0.25225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F81FD

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

Preview Lab → · Contrast checker → · Palette generator →

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