#5F81BE#5F81BE

#5F81BE is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.4% C 0.101 H 261.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5F81BE
RGBrgb(95, 129, 190)
HSLhsl(219, 42%, 56%)
HSVhsv(219, 50%, 75%)
CMYKcmyk(50%, 32.1%, 0%, 25.5%)
CIE-LABlab(53.87, 5.19, -35.64)
CIE-LCHlch(53.87, 36.02, 278.29°)
OKLaboklab(60.38% -0.0149 -0.1002)
OKLCHoklch(60.38% 0.101 261.6)
XYZxyz(21.8607, 21.8496, 51.7707)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81BE #BE9C5F
analogous
#5FB0BE #5F81BE #6C5FBE
triadic
#5F81BE #BE5F81 #81BE5F
tetradic
#5F81BE #BE5FB0 #BE9C5F #5FBE6C
square
#5F81BE #BE5FB0 #BE9C5F #5FBE6C
split-complementary
#5F81BE #BE6C5F #B0BE5F
monochromatic
#2F4874 #41629F #5F81BE #8BA3D0 #B6C6E1

Accessibility & contrast

On white

3.91
#5F81BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5F81BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81BE
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81BE#FFFFFF#000000##000000
##5F81BE1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A86C1
Deuteranopia (green-blind)
#5F7DBD
Tritanopia (blue-blind)
#348E97
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f81be;
/* rgb */ color: rgb(95, 129, 190);
/* oklch */ color: oklch(60.4% 0.101 261.6);
Tailwind
colors: {
  custom: {
    50: '#92a5d2',
    500: '#5f81be',
    950: '#000000',
  },
}
SCSS
$custom: #5f81be;
$custom-light: #92a5d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81be",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 190
  },
  "hsl": {
    "h": 218.526,
    "s": 42.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60382,
    "c": 0.1013,
    "h": 261.6
  },
  "luminance": 0.21851
}

Semantic roles & 50–950 ramp

primary
#5F81BE
secondary
#D0C2A9
accent
#A656D2
background
#F9FAFC
surface
#F2F4F9
border
#CCCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5F81BE

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

Preview Lab → · Contrast checker → · Palette generator →

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