#5F7AF0#5F7AF0

#5F7AF0 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.9% C 0.179 H 270.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5F7AF0
RGBrgb(95, 122, 240)
HSLhsl(229, 83%, 66%)
HSVhsv(229, 60%, 94%)
CMYKcmyk(60.4%, 49.2%, 0%, 5.9%)
CIE-LABlab(54.70, 25.56, -62.51)
CIE-LCHlch(54.70, 67.53, 292.24°)
OKLaboklab(61.9% 0.0021 -0.1789)
OKLCHoklch(61.9% 0.179 270.7)
XYZxyz(27.4018, 22.6410, 85.3473)
Luminance0.2264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AF0 #F0D55F
analogous
#5FC2F0 #5F7AF0 #8D5FF0
triadic
#5F7AF0 #F05F7A #7AF05F
tetradic
#5F7AF0 #F05FC2 #F0D55F #5FF08D
square
#5F7AF0 #F05FC2 #F0D55F #5FF08D
split-complementary
#5F7AF0 #F08D5F #C2F05F
monochromatic
#1233C2 #274BEB #5F7AF0 #97A9F5 #CFD7FA

Accessibility & contrast

On white

3.80
#5F7AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5F7AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AF0
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AF0#FFFFFF#000000##000000
##5F7AF01.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8AF4
Deuteranopia (green-blind)
#1B7DEE
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7af0;
/* rgb */ color: rgb(95, 122, 240);
/* oklch */ color: oklch(61.9% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#99a0f6',
    500: '#5f7af0',
    950: '#000000',
  },
}
SCSS
$custom: #5f7af0;
$custom-light: #99a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7af0",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 240
  },
  "hsl": {
    "h": 228.828,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61902,
    "c": 0.17892,
    "h": 270.7
  },
  "luminance": 0.22643
}

Semantic roles & 50–950 ramp

primary
#5F7AF0
secondary
#EEE5BD
accent
#B706DF
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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