#5F5AF4#5F5AF4

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

Color values

HEX#5F5AF4
RGBrgb(95, 90, 244)
HSLhsl(242, 88%, 65%)
HSVhsv(242, 63%, 96%)
CMYKcmyk(61.1%, 63.1%, 0%, 4.3%)
CIE-LABlab(47.33, 46.08, -76.68)
CIE-LCHlch(47.33, 89.46, 301.00°)
OKLaboklab(56.51% 0.0308 -0.2209)
OKLCHoklch(56.51% 0.223 277.9)
XYZxyz(24.6994, 16.2750, 87.4102)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AF4 #EFF45A
analogous
#5AA2F4 #5F5AF4 #AC5AF4
triadic
#5F5AF4 #F45F5A #5AF45F
tetradic
#5F5AF4 #F45AA2 #EFF45A #5AF4AC
square
#5F5AF4 #F45AA2 #EFF45A #5AF4AC
split-complementary
#5F5AF4 #F4AC5A #A2F45A
monochromatic
#130DC6 #2721F0 #5F5AF4 #9793F8 #CECDFC

Accessibility & contrast

On white

4.93
#5F5AF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5F5AF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AF4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AF4#FFFFFF#000000##FFFFFF
##5F5AF41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F9
Deuteranopia (green-blind)
#006AF1
Tritanopia (blue-blind)
#00819F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5af4;
/* rgb */ color: rgb(95, 90, 244);
/* oklch */ color: oklch(56.5% 0.223 277.9);
Tailwind
colors: {
  custom: {
    50: '#9b89f9',
    500: '#5f5af4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5af4;
$custom-light: #9b89f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5af4",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 241.948,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56505,
    "c": 0.22301,
    "h": 277.9
  },
  "luminance": 0.16277
}

Semantic roles & 50–950 ramp

primary
#5F5AF4
secondary
#EDEFBB
accent
#E401DD
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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