#5F87A2#5F87A2

#5F87A2 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.4% C 0.061 H 238.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F87A2
RGBrgb(95, 135, 162)
HSLhsl(204, 26%, 50%)
HSVhsv(204, 41%, 64%)
CMYKcmyk(41.4%, 16.7%, 0%, 36.5%)
CIE-LABlab(54.42, -6.60, -18.72)
CIE-LCHlch(54.42, 19.85, 250.57°)
OKLaboklab(60.43% -0.0316 -0.0517)
OKLCHoklch(60.43% 0.061 238.6)
XYZxyz(19.9027, 22.3682, 37.4442)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87A2 #A27A5F
analogous
#5FA29B #5F87A2 #5F65A2
triadic
#5F87A2 #A25F87 #87A25F
tetradic
#5F87A2 #9B5FA2 #A27A5F #65A25F
square
#5F87A2 #9B5FA2 #A27A5F #65A25F
split-complementary
#5F87A2 #A25F65 #A29B5F
monochromatic
#314755 #48677C #5F87A2 #86A4B8 #ACC1CF

Accessibility & contrast

On white

3.84
#5F87A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#5F87A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87A2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87A2#FFFFFF#000000##000000
##5F87A21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B86A3
Deuteranopia (green-blind)
#727FA2
Tritanopia (blue-blind)
#468E90
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f87a2;
/* rgb */ color: rgb(95, 135, 162);
/* oklch */ color: oklch(60.4% 0.061 238.6);
Tailwind
colors: {
  custom: {
    50: '#8fa9bd',
    500: '#5f87a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f87a2;
$custom-light: #8fa9bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87a2",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 162
  },
  "hsl": {
    "h": 204.179,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.06058,
    "h": 238.6
  },
  "luminance": 0.22369
}

Semantic roles & 50–950 ramp

primary
#5F87A2
secondary
#BDAC9F
accent
#8B65C3
background
#F8FAFB
surface
#F0F4F6
border
#CBCED0
text
#0D1012
muted
#7D7F81

Preview Lab

Preview with #5F87A2

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

Preview Lab → · Contrast checker → · Palette generator →

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