#5F7AEF#5F7AEF

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

Color values

HEX#5F7AEF
RGBrgb(95, 122, 239)
HSLhsl(229, 82%, 65%)
HSVhsv(229, 60%, 94%)
CMYKcmyk(60.3%, 49%, 0%, 6.3%)
CIE-LABlab(54.64, 25.23, -62.05)
CIE-LCHlch(54.64, 66.98, 292.13°)
OKLaboklab(61.83% 0.002 -0.1776)
OKLCHoklch(61.83% 0.178 270.7)
XYZxyz(27.2536, 22.5817, 84.5671)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AEF #EFD45F
analogous
#5FC2EF #5F7AEF #8C5FEF
triadic
#5F7AEF #EF5F7A #7AEF5F
tetradic
#5F7AEF #EF5FC2 #EFD45F #5FEF8C
square
#5F7AEF #EF5FC2 #EFD45F #5FEF8C
split-complementary
#5F7AEF #EF8C5F #C2EF5F
monochromatic
#1334C0 #274CE9 #5F7AEF #97A8F5 #CED6FA

Accessibility & contrast

On white

3.81
#5F7AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#5F7AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AEF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AEF#FFFFFF#000000##000000
##5F7AEF1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F3
Deuteranopia (green-blind)
#1E7DED
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7aef;
/* rgb */ color: rgb(95, 122, 239);
/* oklch */ color: oklch(61.8% 0.178 270.7);
Tailwind
colors: {
  custom: {
    50: '#98a0f5',
    500: '#5f7aef',
    950: '#000000',
  },
}
SCSS
$custom: #5f7aef;
$custom-light: #98a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7aef",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 228.75,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61835,
    "c": 0.17757,
    "h": 270.7
  },
  "luminance": 0.22584
}

Semantic roles & 50–950 ramp

primary
#5F7AEF
secondary
#EDE4BD
accent
#B607DE
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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