#5F56BB#5F56BB

#5F56BB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.5% C 0.154 H 283.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5F56BB
RGBrgb(95, 86, 187)
HSLhsl(245, 43%, 54%)
HSVhsv(245, 54%, 73%)
CMYKcmyk(49.2%, 54%, 0%, 26.7%)
CIE-LABlab(42.27, 30.63, -52.33)
CIE-LCHlch(42.27, 60.64, 300.34°)
OKLaboklab(51.47% 0.0362 -0.1493)
OKLCHoklch(51.47% 0.154 283.6)
XYZxyz(17.0141, 12.6755, 48.5542)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BB #B2BB56
analogous
#567FBB #5F56BB #9156BB
triadic
#5F56BB #BB5F56 #56BB5F
tetradic
#5F56BB #BB567F #B2BB56 #56BB91
square
#5F56BB #BB567F #B2BB56 #56BB91
split-complementary
#5F56BB #BB9156 #7FBB56
monochromatic
#312B6B #453D97 #5F56BB #8882CD #B2ADDE

Accessibility & contrast

On white

5.94
#5F56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5F56BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56BB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BB#FFFFFF#000000##FFFFFF
##5F56BB1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#1760B9
Tritanopia (blue-blind)
#3E6C80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56bb;
/* rgb */ color: rgb(95, 86, 187);
/* oklch */ color: oklch(51.5% 0.154 283.6);
Tailwind
colors: {
  custom: {
    50: '#9386d0',
    500: '#5f56bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f56bb;
$custom-light: #9386d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56bb",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 245.347,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51472,
    "c": 0.15363,
    "h": 283.6
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#5F56BB
secondary
#C8CCA1
accent
#D255C7
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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