#5F57BA#5F57BA

#5F57BA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.6% C 0.151 H 283.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5F57BA
RGBrgb(95, 87, 186)
HSLhsl(245, 42%, 54%)
HSVhsv(245, 53%, 73%)
CMYKcmyk(48.9%, 53.2%, 0%, 27.1%)
CIE-LABlab(42.45, 29.70, -51.46)
CIE-LCHlch(42.45, 59.42, 300.00°)
OKLaboklab(51.59% 0.035 -0.1467)
OKLCHoklch(51.59% 0.151 283.4)
XYZxyz(16.9878, 12.7936, 48.0191)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57BA #B2BA57
analogous
#5780BA #5F57BA #9057BA
triadic
#5F57BA #BA5F57 #57BA5F
tetradic
#5F57BA #BA5780 #B2BA57 #57BA90
square
#5F57BA #BA5780 #B2BA57 #57BA90
split-complementary
#5F57BA #BA9057 #80BA57
monochromatic
#312C6B #453E96 #5F57BA #8882CC #B2AEDE

Accessibility & contrast

On white

5.90
#5F57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F57BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57BA
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57BA#FFFFFF#000000##FFFFFF
##5F57BA1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#1D61B8
Tritanopia (blue-blind)
#3E6D80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f57ba;
/* rgb */ color: rgb(95, 87, 186);
/* oklch */ color: oklch(51.6% 0.151 283.4);
Tailwind
colors: {
  custom: {
    50: '#9386cf',
    500: '#5f57ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f57ba;
$custom-light: #9386cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57ba",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 244.848,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51586,
    "c": 0.15084,
    "h": 283.4
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#5F57BA
secondary
#C8CCA1
accent
#D256C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5F57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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