#5F7BEC#5F7BEC

#5F7BEC is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.8% C 0.172 H 270.2°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5F7BEC
RGBrgb(95, 123, 236)
HSLhsl(228, 79%, 65%)
HSVhsv(228, 60%, 93%)
CMYKcmyk(59.7%, 47.9%, 0%, 7.5%)
CIE-LABlab(54.71, 23.63, -60.26)
CIE-LCHlch(54.71, 64.73, 291.41°)
OKLaboklab(61.83% 0.0007 -0.1723)
OKLCHoklch(61.83% 0.172 270.2)
XYZxyz(26.9375, 22.6527, 82.2935)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BEC #ECD05F
analogous
#5FC2EC #5F7BEC #895FEC
triadic
#5F7BEC #EC5F7B #7BEC5F
tetradic
#5F7BEC #EC5FC2 #ECD05F #5FEC89
square
#5F7BEC #EC5FC2 #ECD05F #5FEC89
split-complementary
#5F7BEC #EC895F #C2EC5F
monochromatic
#1637BA #284EE6 #5F7BEC #96A8F2 #CCD5F9

Accessibility & contrast

On white

3.80
#5F7BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5F7BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BEC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BEC#FFFFFF#000000##000000
##5F7BEC1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4289F0
Deuteranopia (green-blind)
#287DEA
Tritanopia (blue-blind)
#0095A8
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7bec;
/* rgb */ color: rgb(95, 123, 236);
/* oklch */ color: oklch(61.8% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#98a0f3',
    500: '#5f7bec',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bec;
$custom-light: #98a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bec",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 228.085,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61833,
    "c": 0.17229,
    "h": 270.2
  },
  "luminance": 0.22655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F7BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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