#5F56BC#5F56BC

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

Color values

HEX#5F56BC
RGBrgb(95, 86, 188)
HSLhsl(245, 43%, 54%)
HSVhsv(245, 54%, 74%)
CMYKcmyk(49.5%, 54.3%, 0%, 26.3%)
CIE-LABlab(42.34, 30.93, -52.81)
CIE-LCHlch(42.34, 61.20, 300.36°)
OKLaboklab(51.54% 0.0362 -0.1507)
OKLCHoklch(51.54% 0.155 283.5)
XYZxyz(17.1215, 12.7184, 49.1199)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BC #B3BC56
analogous
#5680BC #5F56BC #9256BC
triadic
#5F56BC #BC5F56 #56BC5F
tetradic
#5F56BC #BC5680 #B3BC56 #56BC92
square
#5F56BC #BC5680 #B3BC56 #56BC92
split-complementary
#5F56BC #BC9256 #80BC56
monochromatic
#312B6D #453C98 #5F56BC #8882CD #B2AEDF

Accessibility & contrast

On white

5.93
#5F56BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F56BC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BC#FFFFFF#000000##FFFFFF
##5F56BC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#1561BA
Tritanopia (blue-blind)
#3D6D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56bc;
/* rgb */ color: rgb(95, 86, 188);
/* oklch */ color: oklch(51.5% 0.155 283.5);
Tailwind
colors: {
  custom: {
    50: '#9386d1',
    500: '#5f56bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f56bc;
$custom-light: #9386d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56bc",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 245.294,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51542,
    "c": 0.155,
    "h": 283.5
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#5F56BC
secondary
#C9CDA1
accent
#D355C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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