#5B81CA#5B81CA

#5B81CA is a mid, moderate blue. Relative luminance 0.222; OKLCH L 60.8% C 0.120 H 262.5°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5B81CA
RGBrgb(91, 129, 202)
HSLhsl(219, 51%, 57%)
HSVhsv(219, 55%, 79%)
CMYKcmyk(55%, 36.1%, 0%, 20.8%)
CIE-LABlab(54.23, 8.08, -41.92)
CIE-LCHlch(54.23, 42.70, 280.90°)
OKLaboklab(60.79% -0.0156 -0.1185)
OKLCHoklch(60.79% 0.12 262.5)
XYZxyz(22.8217, 22.1872, 58.9456)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81CA #CAA45B
analogous
#5BB9CA #5B81CA #6C5BCA
triadic
#5B81CA #CA5B81 #81CA5B
tetradic
#5B81CA #CA5BB9 #CAA45B #5BCA6C
square
#5B81CA #CA5BB9 #CAA45B #5BCA6C
split-complementary
#5B81CA #CA6C5B #B9CA5B
monochromatic
#2A4881 #3961AF #5B81CA #89A5D9 #B8C8E8

Accessibility & contrast

On white

3.86
#5B81CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5B81CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81CA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81CA#FFFFFF#000000##000000
##5B81CA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CD
Deuteranopia (green-blind)
#567DC8
Tritanopia (blue-blind)
#18919C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b81ca;
/* rgb */ color: rgb(91, 129, 202);
/* oklch */ color: oklch(60.8% 0.120 262.5);
Tailwind
colors: {
  custom: {
    50: '#91a5da',
    500: '#5b81ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b81ca;
$custom-light: #91a5da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81ca",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 202
  },
  "hsl": {
    "h": 219.459,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60791,
    "c": 0.11957,
    "h": 262.5
  },
  "luminance": 0.22189
}

Semantic roles & 50–950 ramp

primary
#5B81CA
secondary
#D7C7AA
accent
#AA4DDB
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5B81CA

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

Preview Lab → · Contrast checker → · Palette generator →

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