#5A7EEE#5A7EEE

#5A7EEE is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.3% C 0.173 H 267.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5A7EEE
RGBrgb(90, 126, 238)
HSLhsl(225, 81%, 64%)
HSVhsv(225, 62%, 93%)
CMYKcmyk(62.2%, 47.1%, 0%, 6.7%)
CIE-LABlab(55.35, 21.59, -60.37)
CIE-LCHlch(55.35, 64.12, 289.67°)
OKLaboklab(62.28% -0.0067 -0.1727)
OKLCHoklch(62.28% 0.173 267.8)
XYZxyz(27.1047, 23.2660, 83.9348)
Luminance0.2327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EEE #EECA5A
analogous
#5AC8EE #5A7EEE #805AEE
triadic
#5A7EEE #EE5A7E #7EEE5A
tetradic
#5A7EEE #EE5AC8 #EECA5A #5AEE80
square
#5A7EEE #EE5AC8 #EECA5A #5AEE80
split-complementary
#5A7EEE #EE805A #C8EE5A
monochromatic
#133CBA #2353E8 #5A7EEE #91A9F4 #C9D5F9

Accessibility & contrast

On white

3.71
#5A7EEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#5A7EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EEE
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EEE#FFFFFF#000000##000000
##5A7EEE1.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF2
Deuteranopia (green-blind)
#297EEC
Tritanopia (blue-blind)
#0098AA
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7eee;
/* rgb */ color: rgb(90, 126, 238);
/* oklch */ color: oklch(62.3% 0.173 267.8);
Tailwind
colors: {
  custom: {
    50: '#96a2f4',
    500: '#5a7eee',
    950: '#000000',
  },
}
SCSS
$custom: #5a7eee;
$custom-light: #96a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7eee",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 225.405,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62282,
    "c": 0.17281,
    "h": 267.8
  },
  "luminance": 0.23268
}

Semantic roles & 50–950 ramp

primary
#5A7EEE
secondary
#ECDFB8
accent
#AA08DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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