#5F7AF4#5F7AF4

#5F7AF4 is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.2% C 0.184 H 270.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5F7AF4
RGBrgb(95, 122, 244)
HSLhsl(229, 87%, 66%)
HSVhsv(229, 61%, 96%)
CMYKcmyk(61.1%, 50%, 0%, 4.3%)
CIE-LABlab(54.95, 26.88, -64.33)
CIE-LCHlch(54.95, 69.72, 292.68°)
OKLaboklab(62.17% 0.0025 -0.1843)
OKLCHoklch(62.17% 0.184 270.8)
XYZxyz(28.0025, 22.8813, 88.5113)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AF4 #F4D95F
analogous
#5FC4F4 #5F7AF4 #8F5FF4
triadic
#5F7AF4 #F45F7A #7AF45F
tetradic
#5F7AF4 #F45FC4 #F4D95F #5FF48F
square
#5F7AF4 #F45FC4 #F4D95F #5FF48F
split-complementary
#5F7AF4 #F48F5F #C4F45F
monochromatic
#0E30CB #264AF0 #5F7AF4 #98AAF8 #D2D9FC

Accessibility & contrast

On white

3.77
#5F7AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5F7AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AF4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AF4#FFFFFF#000000##000000
##5F7AF41.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#368AF8
Deuteranopia (green-blind)
#0B7DF1
Tritanopia (blue-blind)
#0096AC
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7af4;
/* rgb */ color: rgb(95, 122, 244);
/* oklch */ color: oklch(62.2% 0.184 270.8);
Tailwind
colors: {
  custom: {
    50: '#99a0f8',
    500: '#5f7af4',
    950: '#000000',
  },
}
SCSS
$custom: #5f7af4;
$custom-light: #99a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7af4",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 229.128,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62171,
    "c": 0.18429,
    "h": 270.8
  },
  "luminance": 0.22884
}

Semantic roles & 50–950 ramp

primary
#5F7AF4
secondary
#F0E7BF
accent
#BB02E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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