#5A7FEB#5A7FEB

#5A7FEB is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.3% C 0.168 H 267.2°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5A7FEB
RGBrgb(90, 127, 235)
HSLhsl(225, 78%, 64%)
HSVhsv(225, 62%, 92%)
CMYKcmyk(61.7%, 46%, 0%, 7.8%)
CIE-LABlab(55.43, 19.97, -58.57)
CIE-LCHlch(55.43, 61.88, 288.83°)
OKLaboklab(62.29% -0.0081 -0.1674)
OKLCHoklch(62.29% 0.168 267.2)
XYZxyz(26.7961, 23.3482, 81.6757)
Luminance0.2335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FEB #EBC65A
analogous
#5AC7EB #5A7FEB #7D5AEB
triadic
#5A7FEB #EB5A7F #7FEB5A
tetradic
#5A7FEB #EB5AC7 #EBC65A #5AEB7D
square
#5A7FEB #EB5AC7 #EBC65A #5AEB7D
split-complementary
#5A7FEB #EB7D5A #C7EB5A
monochromatic
#163EB5 #2355E4 #5A7FEB #91A9F2 #C7D4F8

Accessibility & contrast

On white

3.70
#5A7FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#5A7FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FEB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FEB#FFFFFF#000000##000000
##5A7FEB1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8CEF
Deuteranopia (green-blind)
#317FE9
Tritanopia (blue-blind)
#0098AA
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7feb;
/* rgb */ color: rgb(90, 127, 235);
/* oklch */ color: oklch(62.3% 0.168 267.2);
Tailwind
colors: {
  custom: {
    50: '#95a3f2',
    500: '#5a7feb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7feb;
$custom-light: #95a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7feb",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 224.69,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62288,
    "c": 0.16756,
    "h": 267.2
  },
  "luminance": 0.23351
}

Semantic roles & 50–950 ramp

primary
#5A7FEB
secondary
#EADDB7
accent
#A60BDB
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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