#5F5AF2#5F5AF2

#5F5AF2 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.3% C 0.221 H 278.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F5AF2
RGBrgb(95, 90, 242)
HSLhsl(242, 85%, 65%)
HSVhsv(242, 63%, 95%)
CMYKcmyk(60.7%, 62.8%, 0%, 5.1%)
CIE-LABlab(47.18, 45.45, -75.82)
CIE-LCHlch(47.18, 88.40, 300.94°)
OKLaboklab(56.34% 0.031 -0.2183)
OKLCHoklch(56.34% 0.221 278.1)
XYZxyz(24.3973, 16.1542, 85.8196)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AF2 #EDF25A
analogous
#5AA1F2 #5F5AF2 #AB5AF2
triadic
#5F5AF2 #F25F5A #5AF25F
tetradic
#5F5AF2 #F25AA1 #EDF25A #5AF2AB
square
#5F5AF2 #F25AA1 #EDF25A #5AF2AB
split-complementary
#5F5AF2 #F2AB5A #A1F25A
monochromatic
#150FC2 #2821EE #5F5AF2 #9693F6 #CDCBFB

Accessibility & contrast

On white

4.96
#5F5AF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F5AF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AF2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AF2#FFFFFF#000000##FFFFFF
##5F5AF21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5af2;
/* rgb */ color: rgb(95, 90, 242);
/* oklch */ color: oklch(56.3% 0.221 278.1);
Tailwind
colors: {
  custom: {
    50: '#9b89f7',
    500: '#5f5af2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5af2;
$custom-light: #9b89f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5af2",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 241.974,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56342,
    "c": 0.22053,
    "h": 278.1
  },
  "luminance": 0.16156
}

Semantic roles & 50–950 ramp

primary
#5F5AF2
secondary
#ECEEBA
accent
#E204DB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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