#5F87CA#5F87CA

#5F87CA is a light, moderate blue. Relative luminance 0.240; OKLCH L 62.3% C 0.111 H 260.3°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5F87CA
RGBrgb(95, 135, 202)
HSLhsl(218, 50%, 58%)
HSVhsv(218, 53%, 79%)
CMYKcmyk(53%, 33.2%, 0%, 20.8%)
CIE-LABlab(56.11, 5.38, -38.94)
CIE-LCHlch(56.11, 39.31, 277.87°)
OKLaboklab(62.32% -0.0188 -0.1097)
OKLCHoklch(62.32% 0.111 260.3)
XYZxyz(24.0403, 24.0233, 59.2358)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87CA #CAA25F
analogous
#5FBCCA #5F87CA #6C5FCA
triadic
#5F87CA #CA5F87 #87CA5F
tetradic
#5F87CA #CA5FBC #CAA25F #5FCA6C
square
#5F87CA #CA5FBC #CAA25F #5FCA6C
split-complementary
#5F87CA #CA6C5F #BCCA5F
monochromatic
#2B4C83 #3B67B1 #5F87CA #8DA9D9 #BBCCE8

Accessibility & contrast

On white

3.62
#5F87CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5F87CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87CA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87CA#FFFFFF#000000##000000
##5F87CA1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8CCD
Deuteranopia (green-blind)
#6082C9
Tritanopia (blue-blind)
#26969F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5f87ca;
/* rgb */ color: rgb(95, 135, 202);
/* oklch */ color: oklch(62.3% 0.111 260.3);
Tailwind
colors: {
  custom: {
    50: '#93a9da',
    500: '#5f87ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f87ca;
$custom-light: #93a9da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87ca",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 217.57,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.62315,
    "c": 0.11133,
    "h": 260.3
  },
  "luminance": 0.24025
}

Semantic roles & 50–950 ramp

primary
#5F87CA
secondary
#D8C8AD
accent
#A64EDA
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0E0F15
muted
#7E7F83

Preview Lab

Preview with #5F87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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