#5F87F2#5F87F2

#5F87F2 is a light, vivid blue. Relative luminance 0.262; OKLCH L 64.6% C 0.166 H 266.4°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5F87F2
RGBrgb(95, 135, 242)
HSLhsl(224, 85%, 66%)
HSVhsv(224, 61%, 95%)
CMYKcmyk(60.7%, 44.2%, 0%, 5.1%)
CIE-LABlab(58.20, 18.35, -58.01)
CIE-LCHlch(58.20, 60.84, 287.55°)
OKLaboklab(64.61% -0.0104 -0.1655)
OKLCHoklch(64.61% 0.166 266.4)
XYZxyz(29.4048, 26.1691, 87.4887)
Luminance0.2617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F2 #F2CA5F
analogous
#5FD1F2 #5F87F2 #805FF2
triadic
#5F87F2 #F25F87 #87F25F
tetradic
#5F87F2 #F25FD1 #F2CA5F #5FF280
square
#5F87F2 #F25FD1 #F2CA5F #5FF280
split-complementary
#5F87F2 #F2805F #D1F25F
monochromatic
#1042C6 #265DED #5F87F2 #98B1F7 #D0DCFB

Accessibility & contrast

On white

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

On black

6.23
#5F87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F2#FFFFFF#000000##000000
##5F87F21.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#3E86F0
Tritanopia (blue-blind)
#009FB1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5f87f2;
/* rgb */ color: rgb(95, 135, 242);
/* oklch */ color: oklch(64.6% 0.166 266.4);
Tailwind
colors: {
  custom: {
    50: '#98a9f7',
    500: '#5f87f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f2;
$custom-light: #98a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f2",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 223.673,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64606,
    "c": 0.16584,
    "h": 266.4
  },
  "luminance": 0.26172
}

Semantic roles & 50–950 ramp

primary
#5F87F2
secondary
#EFE1BE
accent
#A504E1
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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