#5F7BF5#5F7BF5

#5F7BF5 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.4% C 0.184 H 270.5°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5F7BF5
RGBrgb(95, 123, 245)
HSLhsl(229, 88%, 67%)
HSVhsv(229, 61%, 96%)
CMYKcmyk(61.2%, 49.8%, 0%, 3.9%)
CIE-LABlab(55.27, 26.61, -64.37)
CIE-LCHlch(55.27, 69.66, 292.46°)
OKLaboklab(62.43% 0.0017 -0.1844)
OKLCHoklch(62.43% 0.184 270.5)
XYZxyz(28.2782, 23.1890, 89.3542)
Luminance0.2319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BF5 #F5D95F
analogous
#5FC6F5 #5F7BF5 #8E5FF5
triadic
#5F7BF5 #F55F7B #7BF55F
tetradic
#5F7BF5 #F55FC6 #F5D95F #5FF58E
square
#5F7BF5 #F55FC6 #F5D95F #5FF58E
split-complementary
#5F7BF5 #F58E5F #C6F55F
monochromatic
#0D31CD #254BF1 #5F7BF5 #99ABF9 #D2DAFC

Accessibility & contrast

On white

3.72
#5F7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5F7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BF5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BF5#FFFFFF#000000##000000
##5F7BF51.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#378BF9
Deuteranopia (green-blind)
#0E7EF2
Tritanopia (blue-blind)
#0097AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7bf5;
/* rgb */ color: rgb(95, 123, 245);
/* oklch */ color: oklch(62.4% 0.184 270.5);
Tailwind
colors: {
  custom: {
    50: '#99a0f9',
    500: '#5f7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bf5;
$custom-light: #99a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bf5",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 228.8,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6243,
    "c": 0.18439,
    "h": 270.5
  },
  "luminance": 0.23191
}

Semantic roles & 50–950 ramp

primary
#5F7BF5
secondary
#F0E7C0
accent
#BA01E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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