#5F7BED#5F7BED

#5F7BED is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.9% C 0.174 H 270.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5F7BED
RGBrgb(95, 123, 237)
HSLhsl(228, 80%, 65%)
HSVhsv(228, 60%, 93%)
CMYKcmyk(59.9%, 48.1%, 0%, 7.1%)
CIE-LABlab(54.77, 23.96, -60.72)
CIE-LCHlch(54.77, 65.28, 291.54°)
OKLaboklab(61.9% 0.0008 -0.1736)
OKLCHoklch(61.9% 0.174 270.3)
XYZxyz(27.0832, 22.7110, 83.0608)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BED #EDD15F
analogous
#5FC2ED #5F7BED #8A5FED
triadic
#5F7BED #ED5F7B #7BED5F
tetradic
#5F7BED #ED5FC2 #EDD15F #5FED8A
square
#5F7BED #ED5FC2 #EDD15F #5FED8A
split-complementary
#5F7BED #ED8A5F #C2ED5F
monochromatic
#1536BC #284EE7 #5F7BED #96A8F3 #CDD6F9

Accessibility & contrast

On white

3.79
#5F7BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#5F7BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BED
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BED#FFFFFF#000000##000000
##5F7BED1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#418AF1
Deuteranopia (green-blind)
#267DEB
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7bed;
/* rgb */ color: rgb(95, 123, 237);
/* oklch */ color: oklch(61.9% 0.174 270.3);
Tailwind
colors: {
  custom: {
    50: '#98a0f3',
    500: '#5f7bed',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bed;
$custom-light: #98a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bed",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 237
  },
  "hsl": {
    "h": 228.169,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61898,
    "c": 0.17364,
    "h": 270.3
  },
  "luminance": 0.22713
}

Semantic roles & 50–950 ramp

primary
#5F7BED
secondary
#ECE2BC
accent
#B309DC
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7BED

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

Preview Lab → · Contrast checker → · Palette generator →

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