#5F7AEC#5F7AEC

#5F7AEC is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.6% C 0.174 H 270.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5F7AEC
RGBrgb(95, 122, 236)
HSLhsl(229, 79%, 65%)
HSVhsv(229, 60%, 93%)
CMYKcmyk(59.7%, 48.3%, 0%, 7.5%)
CIE-LABlab(54.45, 24.24, -60.67)
CIE-LCHlch(54.45, 65.34, 291.78°)
OKLaboklab(61.64% 0.0017 -0.1735)
OKLCHoklch(61.64% 0.174 270.6)
XYZxyz(26.8141, 22.4059, 82.2524)
Luminance0.2241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AEC #ECD15F
analogous
#5FC0EC #5F7AEC #8B5FEC
triadic
#5F7AEC #EC5F7A #7AEC5F
tetradic
#5F7AEC #EC5FC0 #ECD15F #5FEC8B
square
#5F7AEC #EC5FC0 #ECD15F #5FEC8B
split-complementary
#5F7AEC #EC8B5F #C0EC5F
monochromatic
#1636BA #284DE6 #5F7AEC #96A7F2 #CCD5F9

Accessibility & contrast

On white

3.83
#5F7AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5F7AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AEC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AEC#FFFFFF#000000##000000
##5F7AEC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F89F0
Deuteranopia (green-blind)
#257CEA
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f7aec;
/* rgb */ color: rgb(95, 122, 236);
/* oklch */ color: oklch(61.6% 0.174 270.6);
Tailwind
colors: {
  custom: {
    50: '#98a0f3',
    500: '#5f7aec',
    950: '#000000',
  },
}
SCSS
$custom: #5f7aec;
$custom-light: #98a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7aec",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 228.511,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61637,
    "c": 0.17352,
    "h": 270.6
  },
  "luminance": 0.22408
}

Semantic roles & 50–950 ramp

primary
#5F7AEC
secondary
#EBE2BB
accent
#B30ADB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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