#5F50BE#5F50BE

#5F50BE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.166 H 285.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5F50BE
RGBrgb(95, 80, 190)
HSLhsl(248, 46%, 53%)
HSVhsv(248, 58%, 75%)
CMYKcmyk(50%, 57.9%, 0%, 25.5%)
CIE-LABlab(41.04, 35.20, -56.08)
CIE-LCHlch(41.04, 66.21, 302.12°)
OKLaboklab(50.62% 0.043 -0.1603)
OKLCHoklch(50.62% 0.166 285)
XYZxyz(16.8795, 11.8871, 50.1102)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50BE #AFBE50
analogous
#5078BE #5F50BE #9650BE
triadic
#5F50BE #BE5F50 #50BE5F
tetradic
#5F50BE #BE5078 #AFBE50 #50BE96
square
#5F50BE #BE5078 #AFBE50 #50BE96
split-complementary
#5F50BE #BE9650 #78BE50
monochromatic
#31286C #463998 #5F50BE #887DCF #B1A9DF

Accessibility & contrast

On white

6.22
#5F50BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5F50BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50BE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50BE#FFFFFF#000000##FFFFFF
##5F50BE1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#3C697F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f50be;
/* rgb */ color: rgb(95, 80, 190);
/* oklch */ color: oklch(50.6% 0.166 285.0);
Tailwind
colors: {
  custom: {
    50: '#9481d2',
    500: '#5f50be',
    950: '#000000',
  },
}
SCSS
$custom: #5f50be;
$custom-light: #9481d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50be",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 190
  },
  "hsl": {
    "h": 248.182,
    "s": 45.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50622,
    "c": 0.16602,
    "h": 285
  },
  "luminance": 0.11888
}

Semantic roles & 50–950 ramp

primary
#5F50BE
secondary
#C6CD9D
accent
#D552C4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F50BE

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

Preview Lab → · Contrast checker → · Palette generator →

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