#5A7FEA#5A7FEA

#5A7FEA is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.2% C 0.166 H 267.2°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5A7FEA
RGBrgb(90, 127, 234)
HSLhsl(225, 77%, 64%)
HSVhsv(225, 62%, 92%)
CMYKcmyk(61.5%, 45.7%, 0%, 8.2%)
CIE-LABlab(55.37, 19.63, -58.11)
CIE-LCHlch(55.37, 61.33, 288.67°)
OKLaboklab(62.22% -0.0083 -0.166)
OKLCHoklch(62.22% 0.166 267.2)
XYZxyz(26.6520, 23.2906, 80.9170)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FEA #EAC55A
analogous
#5AC7EA #5A7FEA #7D5AEA
triadic
#5A7FEA #EA5A7F #7FEA5A
tetradic
#5A7FEA #EA5AC7 #EAC55A #5AEA7D
square
#5A7FEA #EA5AC7 #EAC55A #5AEA7D
split-complementary
#5A7FEA #EA7D5A #C7EA5A
monochromatic
#173FB3 #2455E3 #5A7FEA #90A9F1 #C7D3F8

Accessibility & contrast

On white

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

On black

5.66
#5A7FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FEA
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FEA#FFFFFF#000000##000000
##5A7FEA1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CEE
Deuteranopia (green-blind)
#337EE8
Tritanopia (blue-blind)
#0097A9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7fea;
/* rgb */ color: rgb(90, 127, 234);
/* oklch */ color: oklch(62.2% 0.166 267.2);
Tailwind
colors: {
  custom: {
    50: '#95a3f1',
    500: '#5a7fea',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fea;
$custom-light: #95a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fea",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 224.583,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62224,
    "c": 0.16621,
    "h": 267.2
  },
  "luminance": 0.23293
}

Semantic roles & 50–950 ramp

primary
#5A7FEA
secondary
#E9DCB6
accent
#A50CDA
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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