#5F7AF2#5F7AF2

#5F7AF2 is a light, vivid blue. Relative luminance 0.228; OKLCH L 62.0% C 0.182 H 270.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5F7AF2
RGBrgb(95, 122, 242)
HSLhsl(229, 85%, 66%)
HSVhsv(229, 61%, 95%)
CMYKcmyk(60.7%, 49.6%, 0%, 5.1%)
CIE-LABlab(54.82, 26.22, -63.42)
CIE-LCHlch(54.82, 68.63, 292.46°)
OKLaboklab(62.04% 0.0023 -0.1816)
OKLCHoklch(62.04% 0.182 270.7)
XYZxyz(27.7005, 22.7605, 86.9206)
Luminance0.2276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AF2 #F2D75F
analogous
#5FC3F2 #5F7AF2 #8D5FF2
triadic
#5F7AF2 #F25F7A #7AF25F
tetradic
#5F7AF2 #F25FC3 #F2D75F #5FF28D
square
#5F7AF2 #F25FC3 #F2D75F #5FF28D
split-complementary
#5F7AF2 #F28D5F #C3F25F
monochromatic
#1032C6 #264BED #5F7AF2 #98A9F7 #D0D8FB

Accessibility & contrast

On white

3.78
#5F7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#5F7AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AF2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AF2#FFFFFF#000000##000000
##5F7AF21.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#147DF0
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7af2;
/* rgb */ color: rgb(95, 122, 242);
/* oklch */ color: oklch(62.0% 0.182 270.7);
Tailwind
colors: {
  custom: {
    50: '#99a0f7',
    500: '#5f7af2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7af2;
$custom-light: #99a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7af2",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 228.98,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62036,
    "c": 0.1816,
    "h": 270.7
  },
  "luminance": 0.22763
}

Semantic roles & 50–950 ramp

primary
#5F7AF2
secondary
#EFE6BE
accent
#B904E1
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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