#5F56BA#5F56BA

#5F56BA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.152 H 283.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5F56BA
RGBrgb(95, 86, 186)
HSLhsl(245, 42%, 53%)
HSVhsv(245, 54%, 73%)
CMYKcmyk(48.9%, 53.8%, 0%, 27.1%)
CIE-LABlab(42.20, 30.32, -51.85)
CIE-LCHlch(42.20, 60.07, 300.31°)
OKLaboklab(51.4% 0.0361 -0.1479)
OKLCHoklch(51.4% 0.152 283.7)
XYZxyz(16.9074, 12.6328, 47.9923)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BA #B1BA56
analogous
#567FBA #5F56BA #9156BA
triadic
#5F56BA #BA5F56 #56BA5F
tetradic
#5F56BA #BA567F #B1BA56 #56BA91
square
#5F56BA #BA567F #B1BA56 #56BA91
split-complementary
#5F56BA #BA9156 #7FBA56
monochromatic
#312B6A #453D96 #5F56BA #8881CC #B1ADDD

Accessibility & contrast

On white

5.95
#5F56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56BA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BA#FFFFFF#000000##FFFFFF
##5F56BA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BD
Deuteranopia (green-blind)
#1A60B8
Tritanopia (blue-blind)
#3E6C80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56ba;
/* rgb */ color: rgb(95, 86, 186);
/* oklch */ color: oklch(51.4% 0.152 283.7);
Tailwind
colors: {
  custom: {
    50: '#9386cf',
    500: '#5f56ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f56ba;
$custom-light: #9386cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56ba",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 245.4,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51403,
    "c": 0.15225,
    "h": 283.7
  },
  "luminance": 0.12634
}

Semantic roles & 50–950 ramp

primary
#5F56BA
secondary
#C8CBA0
accent
#D256C7
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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