#5F5BF2#5F5BF2

#5F5BF2 is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.5% C 0.219 H 277.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5F5BF2
RGBrgb(95, 91, 242)
HSLhsl(242, 85%, 65%)
HSVhsv(242, 62%, 95%)
CMYKcmyk(60.7%, 62.4%, 0%, 5.1%)
CIE-LABlab(47.40, 44.87, -75.46)
CIE-LCHlch(47.40, 87.79, 300.74°)
OKLaboklab(56.5% 0.0302 -0.2173)
OKLCHoklch(56.5% 0.219 277.9)
XYZxyz(24.4823, 16.3240, 85.8479)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BF2 #EEF25B
analogous
#5BA3F2 #5F5BF2 #AA5BF2
triadic
#5F5BF2 #F25F5B #5BF25F
tetradic
#5F5BF2 #F25BA3 #EEF25B #5BF2AA
square
#5F5BF2 #F25BA3 #EEF25B #5BF2AA
split-complementary
#5F5BF2 #F2AA5B #A3F25B
monochromatic
#140FC3 #2822EE #5F5BF2 #9694F6 #CECCFB

Accessibility & contrast

On white

4.92
#5F5BF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5F5BF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BF2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BF2#FFFFFF#000000##FFFFFF
##5F5BF21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#00819E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5bf2;
/* rgb */ color: rgb(95, 91, 242);
/* oklch */ color: oklch(56.5% 0.219 277.9);
Tailwind
colors: {
  custom: {
    50: '#9b8af7',
    500: '#5f5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bf2;
$custom-light: #9b8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bf2",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 241.589,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.21937,
    "h": 277.9
  },
  "luminance": 0.16326
}

Semantic roles & 50–950 ramp

primary
#5F5BF2
secondary
#ECEEBB
accent
#E204DC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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