#5F87F1#5F87F1

#5F87F1 is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.5% C 0.165 H 266.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5F87F1
RGBrgb(95, 135, 241)
HSLhsl(224, 84%, 66%)
HSVhsv(224, 61%, 95%)
CMYKcmyk(60.6%, 44%, 0%, 5.5%)
CIE-LABlab(58.14, 18.02, -57.55)
CIE-LCHlch(58.14, 60.30, 287.39°)
OKLaboklab(64.54% -0.0105 -0.1642)
OKLCHoklch(64.54% 0.165 266.3)
XYZxyz(29.2550, 26.1092, 86.6999)
Luminance0.2611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F1 #F1C95F
analogous
#5FD0F1 #5F87F1 #805FF1
triadic
#5F87F1 #F15F87 #87F15F
tetradic
#5F87F1 #F15FD0 #F1C95F #5FF180
square
#5F87F1 #F15FD0 #F1C95F #5FF180
split-complementary
#5F87F1 #F1805F #D0F15F
monochromatic
#1142C4 #275DEC #5F87F1 #97B1F6 #D0DBFB

Accessibility & contrast

On white

3.37
#5F87F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#5F87F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F1#FFFFFF#000000##000000
##5F87F11.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5693F5
Deuteranopia (green-blind)
#3F86EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5f87f1;
/* rgb */ color: rgb(95, 135, 241);
/* oklch */ color: oklch(64.5% 0.165 266.3);
Tailwind
colors: {
  custom: {
    50: '#98a9f6',
    500: '#5f87f1',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f1;
$custom-light: #98a9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f1",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 223.562,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64544,
    "c": 0.1645,
    "h": 266.3
  },
  "luminance": 0.26112
}

Semantic roles & 50–950 ramp

primary
#5F87F1
secondary
#EEE1BE
accent
#A405E0
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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