#5F57BC#5F57BC

#5F57BC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.7% C 0.154 H 283.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5F57BC
RGBrgb(95, 87, 188)
HSLhsl(245, 43%, 54%)
HSVhsv(245, 54%, 74%)
CMYKcmyk(49.5%, 53.7%, 0%, 26.3%)
CIE-LABlab(42.58, 30.32, -52.42)
CIE-LCHlch(42.58, 60.55, 300.05°)
OKLaboklab(51.73% 0.0351 -0.1495)
OKLCHoklch(51.73% 0.154 283.2)
XYZxyz(17.2019, 12.8792, 49.1467)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57BC #B4BC57
analogous
#5782BC #5F57BC #9257BC
triadic
#5F57BC #BC5F57 #57BC5F
tetradic
#5F57BC #BC5782 #B4BC57 #57BC92
square
#5F57BC #BC5782 #B4BC57 #57BC92
split-complementary
#5F57BC #BC9257 #82BC57
monochromatic
#312C6D #443D99 #5F57BC #8983CD #B2AFDF

Accessibility & contrast

On white

5.87
#5F57BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5F57BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57BC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57BC#FFFFFF#000000##FFFFFF
##5F57BC1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2068BF
Deuteranopia (green-blind)
#1861BA
Tritanopia (blue-blind)
#3D6D81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f57bc;
/* rgb */ color: rgb(95, 87, 188);
/* oklch */ color: oklch(51.7% 0.154 283.2);
Tailwind
colors: {
  custom: {
    50: '#9386d1',
    500: '#5f57bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f57bc;
$custom-light: #9386d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57bc",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 244.752,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51725,
    "c": 0.15361,
    "h": 283.2
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#5F57BC
secondary
#CACDA2
accent
#D355C9
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F57BC

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

Preview Lab → · Contrast checker → · Palette generator →

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