#5A7FE0#5A7FE0

#5A7FE0 is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.6% C 0.153 H 266.3°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5A7FE0
RGBrgb(90, 127, 224)
HSLhsl(223, 68%, 62%)
HSVhsv(223, 60%, 88%)
CMYKcmyk(59.8%, 43.3%, 0%, 12.2%)
CIE-LABlab(54.80, 16.30, -53.43)
CIE-LCHlch(54.80, 55.86, 286.96°)
OKLaboklab(61.6% -0.0098 -0.1523)
OKLCHoklch(61.6% 0.153 266.3)
XYZxyz(25.2558, 22.7321, 73.5634)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FE0 #E0BB5A
analogous
#5AC2E0 #5A7FE0 #785AE0
triadic
#5A7FE0 #E05A7F #7FE05A
tetradic
#5A7FE0 #E05AC2 #E0BB5A #5AE078
square
#5A7FE0 #E05AC2 #E0BB5A #5AE078
split-complementary
#5A7FE0 #E0785A #C2E05A
monochromatic
#1E42A1 #2858D5 #5A7FE0 #8EA7EA #C1CFF3

Accessibility & contrast

On white

3.79
#5A7FE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#5A7FE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FE0
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FE0#FFFFFF#000000##000000
##5A7FE01.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE4
Deuteranopia (green-blind)
#3F7DDE
Tritanopia (blue-blind)
#0095A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7fe0;
/* rgb */ color: rgb(90, 127, 224);
/* oklch */ color: oklch(61.6% 0.153 266.3);
Tailwind
colors: {
  custom: {
    50: '#93a3ea',
    500: '#5a7fe0',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fe0;
$custom-light: #93a3ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fe0",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 224
  },
  "hsl": {
    "h": 223.433,
    "s": 68.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61598,
    "c": 0.1526,
    "h": 266.3
  },
  "luminance": 0.22734
}

Semantic roles & 50–950 ramp

primary
#5A7FE0
secondary
#E4D6B2
accent
#9D15D0
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A7FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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