#5A7BEC#5A7BEC

#5A7BEC is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.6% C 0.174 H 268.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A7BEC
RGBrgb(90, 123, 236)
HSLhsl(226, 79%, 64%)
HSVhsv(226, 62%, 93%)
CMYKcmyk(61.9%, 47.9%, 0%, 7.5%)
CIE-LABlab(54.44, 22.74, -60.71)
CIE-LCHlch(54.44, 64.83, 290.54°)
OKLaboklab(61.55% -0.0041 -0.1737)
OKLCHoklch(61.55% 0.174 268.6)
XYZxyz(26.4346, 22.3934, 82.2699)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BEC #ECCB5A
analogous
#5AC4EC #5A7BEC #825AEC
triadic
#5A7BEC #EC5A7B #7BEC5A
tetradic
#5A7BEC #EC5AC4 #ECCB5A #5AEC82
square
#5A7BEC #EC5AC4 #ECCB5A #5AEC82
split-complementary
#5A7BEC #EC825A #C4EC5A
monochromatic
#153AB7 #234FE6 #5A7BEC #91A7F2 #C8D3F9

Accessibility & contrast

On white

3.83
#5A7BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5A7BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BEC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BEC#FFFFFF#000000##000000
##5A7BEC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4189F0
Deuteranopia (green-blind)
#237CEA
Tritanopia (blue-blind)
#0095A8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7bec;
/* rgb */ color: rgb(90, 123, 236);
/* oklch */ color: oklch(61.6% 0.174 268.6);
Tailwind
colors: {
  custom: {
    50: '#95a0f3',
    500: '#5a7bec',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bec;
$custom-light: #95a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bec",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 226.438,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61554,
    "c": 0.17376,
    "h": 268.6
  },
  "luminance": 0.22396
}

Semantic roles & 50–950 ramp

primary
#5A7BEC
secondary
#EBDFB7
accent
#AC0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A7BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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