#5F8AFA#5F8AFA

#5F8AFA is a light, vivid blue. Relative luminance 0.275; OKLCH L 65.7% C 0.173 H 266.0°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5F8AFA
RGBrgb(95, 138, 250)
HSLhsl(223, 94%, 68%)
HSVhsv(223, 62%, 98%)
CMYKcmyk(62%, 44.8%, 0%, 2%)
CIE-LABlab(59.44, 19.20, -60.43)
CIE-LCHlch(59.44, 63.41, 287.63°)
OKLaboklab(65.71% -0.0121 -0.1726)
OKLCHoklch(65.71% 0.173 266)
XYZxyz(31.0572, 27.5092, 94.0971)
Luminance0.2751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8AFA #FACF5F
analogous
#5FD7FA #5F8AFA #825FFA
triadic
#5F8AFA #FA5F8A #8AFA5F
tetradic
#5F8AFA #FA5FD7 #FACF5F #5FFA82
square
#5F8AFA #FA5FD7 #FACF5F #5FFA82
split-complementary
#5F8AFA #FA825F #D7FA5F
monochromatic
#0741D8 #245FF8 #5F8AFA #9AB5FC #D6E1FE

Accessibility & contrast

On white

3.23
#5F8AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#5F8AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8AFA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8AFA#FFFFFF#000000##000000
##5F8AFA1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5497FE
Deuteranopia (green-blind)
#3A89F8
Tritanopia (blue-blind)
#00A3B6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #5f8afa;
/* rgb */ color: rgb(95, 138, 250);
/* oklch */ color: oklch(65.7% 0.173 266.0);
Tailwind
colors: {
  custom: {
    50: '#9aabfc',
    500: '#5f8afa',
    950: '#000000',
  },
}
SCSS
$custom: #5f8afa;
$custom-light: #9aabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8afa",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 223.355,
    "s": 93.939,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65708,
    "c": 0.17302,
    "h": 266
  },
  "luminance": 0.27512
}

Semantic roles & 50–950 ramp

primary
#5F8AFA
secondary
#F2E5C2
accent
#A600E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F1018
muted
#7F7F86

Preview Lab

Preview with #5F8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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