#5A7BEF#5A7BEF

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

Color values

HEX#5A7BEF
RGBrgb(90, 123, 239)
HSLhsl(227, 82%, 65%)
HSVhsv(227, 62%, 94%)
CMYKcmyk(62.3%, 48.5%, 0%, 6.3%)
CIE-LABlab(54.63, 23.75, -62.09)
CIE-LCHlch(54.63, 66.47, 290.93°)
OKLaboklab(61.75% -0.0038 -0.1778)
OKLCHoklch(61.75% 0.178 268.8)
XYZxyz(26.8741, 22.5692, 84.5847)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BEF #EFCE5A
analogous
#5AC6EF #5A7BEF #835AEF
triadic
#5A7BEF #EF5A7B #7BEF5A
tetradic
#5A7BEF #EF5AC6 #EFCE5A #5AEF83
square
#5A7BEF #EF5AC6 #EFCE5A #5AEF83
split-complementary
#5A7BEF #EF835A #C6EF5A
monochromatic
#1238BC #224EEA #5A7BEF #92A8F4 #CAD4FA

Accessibility & contrast

On white

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

On black

5.51
#5A7BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BEF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BEF#FFFFFF#000000##000000
##5A7BEF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8AF3
Deuteranopia (green-blind)
#1B7CED
Tritanopia (blue-blind)
#0096AA
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7bef;
/* rgb */ color: rgb(90, 123, 239);
/* oklch */ color: oklch(61.8% 0.178 268.8);
Tailwind
colors: {
  custom: {
    50: '#96a0f5',
    500: '#5a7bef',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bef;
$custom-light: #96a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bef",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 226.711,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61753,
    "c": 0.1778,
    "h": 268.8
  },
  "luminance": 0.22572
}

Semantic roles & 50–950 ramp

primary
#5A7BEF
secondary
#ECE1B9
accent
#AF07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A7BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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