#5F4FBB#5F4FBB

#5F4FBB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.163 H 285.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5F4FBB
RGBrgb(95, 79, 187)
HSLhsl(249, 44%, 52%)
HSVhsv(249, 58%, 73%)
CMYKcmyk(49.2%, 57.8%, 0%, 26.7%)
CIE-LABlab(40.59, 34.89, -55.04)
CIE-LCHlch(40.59, 65.17, 302.37°)
OKLaboklab(50.23% 0.0441 -0.1573)
OKLCHoklch(50.23% 0.163 285.7)
XYZxyz(16.4823, 11.6119, 48.3769)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FBB #ABBB4F
analogous
#4F75BB #5F4FBB #954FBB
triadic
#5F4FBB #BB5F4F #4FBB5F
tetradic
#5F4FBB #BB4F75 #ABBB4F #4FBB95
square
#5F4FBB #BB4F75 #ABBB4F #4FBB95
split-complementary
#5F4FBB #BB954F #75BB4F
monochromatic
#312868 #473994 #5F4FBB #877BCC #AFA7DD

Accessibility & contrast

On white

6.32
#5F4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5F4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FBB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FBB#FFFFFF#000000##FFFFFF
##5F4FBB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#3E687D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4fbb;
/* rgb */ color: rgb(95, 79, 187);
/* oklch */ color: oklch(50.2% 0.163 285.7);
Tailwind
colors: {
  custom: {
    50: '#9381d0',
    500: '#5f4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fbb;
$custom-light: #9381d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fbb",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 248.889,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50228,
    "c": 0.16338,
    "h": 285.7
  },
  "luminance": 0.11613
}

Semantic roles & 50–950 ramp

primary
#5F4FBB
secondary
#C3CA9B
accent
#D454C1
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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