#5F57BB#5F57BB

#5F57BB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.152 H 283.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5F57BB
RGBrgb(95, 87, 187)
HSLhsl(245, 42%, 54%)
HSVhsv(245, 53%, 73%)
CMYKcmyk(49.2%, 53.5%, 0%, 26.7%)
CIE-LABlab(42.52, 30.01, -51.94)
CIE-LCHlch(42.52, 59.99, 300.02°)
OKLaboklab(51.65% 0.035 -0.1481)
OKLCHoklch(51.65% 0.152 283.3)
XYZxyz(17.0945, 12.8363, 48.5810)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57BB #B3BB57
analogous
#5781BB #5F57BB #9157BB
triadic
#5F57BB #BB5F57 #57BB5F
tetradic
#5F57BB #BB5781 #B3BB57 #57BB91
square
#5F57BB #BB5781 #B3BB57 #57BB91
split-complementary
#5F57BB #BB9157 #81BB57
monochromatic
#312C6C #453D97 #5F57BB #8883CD #B2AEDE

Accessibility & contrast

On white

5.89
#5F57BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5F57BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57BB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57BB#FFFFFF#000000##FFFFFF
##5F57BB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268BE
Deuteranopia (green-blind)
#1B61B9
Tritanopia (blue-blind)
#3E6D80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f57bb;
/* rgb */ color: rgb(95, 87, 187);
/* oklch */ color: oklch(51.7% 0.152 283.3);
Tailwind
colors: {
  custom: {
    50: '#9386d0',
    500: '#5f57bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f57bb;
$custom-light: #9386d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57bb",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 244.8,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51655,
    "c": 0.15223,
    "h": 283.3
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#5F57BB
secondary
#C9CCA2
accent
#D256C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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