#5F5BF8#5F5BF8

#5F5BF8 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 57.0% C 0.227 H 277.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5F5BF8
RGBrgb(95, 91, 248)
HSLhsl(242, 92%, 66%)
HSVhsv(242, 63%, 97%)
CMYKcmyk(61.7%, 63.3%, 0%, 2.7%)
CIE-LABlab(47.87, 46.76, -78.05)
CIE-LCHlch(47.87, 90.98, 300.93°)
OKLaboklab(56.99% 0.0297 -0.2249)
OKLCHoklch(56.99% 0.227 277.5)
XYZxyz(25.3982, 16.6904, 90.6719)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BF8 #F4F85B
analogous
#5BA6F8 #5F5BF8 #AE5BF8
triadic
#5F5BF8 #F85F5B #5BF85F
tetradic
#5F5BF8 #F85BA6 #F4F85B #5BF8AE
square
#5F5BF8 #F85BA6 #F4F85B #5BF8AE
split-complementary
#5F5BF8 #F8AE5B #A6F85B
monochromatic
#0E09D0 #2620F5 #5F5BF8 #9896FB #D2D0FD

Accessibility & contrast

On white

4.84
#5F5BF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5F5BF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BF8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BF8#FFFFFF#000000##FFFFFF
##5F5BF81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FD
Deuteranopia (green-blind)
#006BF5
Tritanopia (blue-blind)
#0083A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5bf8;
/* rgb */ color: rgb(95, 91, 248);
/* oklch */ color: oklch(57.0% 0.227 277.5);
Tailwind
colors: {
  custom: {
    50: '#9c8afc',
    500: '#5f5bf8',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bf8;
$custom-light: #9c8afc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bf8",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 241.529,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.56993,
    "c": 0.22683,
    "h": 277.5
  },
  "luminance": 0.16692
}

Semantic roles & 50–950 ramp

primary
#5F5BF8
secondary
#F0F1BE
accent
#E600E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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