#5A7CEF#5A7CEF

#5A7CEF is a mid, vivid blue. Relative luminance 0.228; OKLCH L 62.0% C 0.177 H 268.5°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5A7CEF
RGBrgb(90, 124, 239)
HSLhsl(226, 82%, 65%)
HSVhsv(226, 62%, 94%)
CMYKcmyk(62.3%, 48.1%, 0%, 6.3%)
CIE-LABlab(54.88, 23.14, -61.67)
CIE-LCHlch(54.88, 65.87, 290.57°)
OKLaboklab(61.95% -0.0047 -0.1765)
OKLCHoklch(61.95% 0.177 268.5)
XYZxyz(26.9988, 22.8186, 84.6262)
Luminance0.2282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CEF #EFCD5A
analogous
#5AC6EF #5A7CEF #835AEF
triadic
#5A7CEF #EF5A7C #7CEF5A
tetradic
#5A7CEF #EF5AC6 #EFCD5A #5AEF83
square
#5A7CEF #EF5AC6 #EFCD5A #5AEF83
split-complementary
#5A7CEF #EF835A #C6EF5A
monochromatic
#1239BC #2250EA #5A7CEF #92A8F4 #CAD5FA

Accessibility & contrast

On white

3.77
#5A7CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#5A7CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CEF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CEF#FFFFFF#000000##000000
##5A7CEF1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#408AF3
Deuteranopia (green-blind)
#207DED
Tritanopia (blue-blind)
#0096AA
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7cef;
/* rgb */ color: rgb(90, 124, 239);
/* oklch */ color: oklch(62.0% 0.177 268.5);
Tailwind
colors: {
  custom: {
    50: '#96a1f5',
    500: '#5a7cef',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cef;
$custom-light: #96a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cef",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 226.309,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6195,
    "c": 0.17658,
    "h": 268.5
  },
  "luminance": 0.22821
}

Semantic roles & 50–950 ramp

primary
#5A7CEF
secondary
#ECE0B9
accent
#AD07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A7CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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