#5A7DEF#5A7DEF

#5A7DEF is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.1% C 0.175 H 268.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5A7DEF
RGBrgb(90, 125, 239)
HSLhsl(226, 82%, 65%)
HSVhsv(226, 62%, 94%)
CMYKcmyk(62.3%, 47.7%, 0%, 6.3%)
CIE-LABlab(55.14, 22.53, -61.25)
CIE-LCHlch(55.14, 65.26, 290.20°)
OKLaboklab(62.15% -0.0057 -0.1753)
OKLCHoklch(62.15% 0.175 268.2)
XYZxyz(27.1247, 23.0705, 84.6682)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DEF #EFCC5A
analogous
#5AC8EF #5A7DEF #825AEF
triadic
#5A7DEF #EF5A7D #7DEF5A
tetradic
#5A7DEF #EF5AC8 #EFCC5A #5AEF82
square
#5A7DEF #EF5AC8 #EFCC5A #5AEF82
split-complementary
#5A7DEF #EF825A #C8EF5A
monochromatic
#123ABC #2251EA #5A7DEF #92A9F4 #CAD5FA

Accessibility & contrast

On white

3.74
#5A7DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5A7DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DEF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DEF#FFFFFF#000000##000000
##5A7DEF1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#428BF3
Deuteranopia (green-blind)
#247EED
Tritanopia (blue-blind)
#0097AA
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7def;
/* rgb */ color: rgb(90, 125, 239);
/* oklch */ color: oklch(62.1% 0.175 268.2);
Tailwind
colors: {
  custom: {
    50: '#96a2f5',
    500: '#5a7def',
    950: '#000000',
  },
}
SCSS
$custom: #5a7def;
$custom-light: #96a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7def",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 225.906,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62148,
    "c": 0.17537,
    "h": 268.2
  },
  "luminance": 0.23073
}

Semantic roles & 50–950 ramp

primary
#5A7DEF
secondary
#ECE0B9
accent
#AC07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5A7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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