#5A6CEB#5A6CEB

#5A6CEB is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.6% C 0.191 H 273.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A6CEB
RGBrgb(90, 108, 235)
HSLhsl(233, 78%, 64%)
HSVhsv(233, 62%, 92%)
CMYKcmyk(61.7%, 54%, 0%, 7.8%)
CIE-LABlab(50.56, 31.60, -66.40)
CIE-LCHlch(50.56, 73.54, 295.45°)
OKLaboklab(58.61% 0.0099 -0.1906)
OKLCHoklch(58.61% 0.191 273)
XYZxyz(24.5694, 18.8949, 80.9335)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6CEB #EBD95A
analogous
#5AB4EB #5A6CEB #905AEB
triadic
#5A6CEB #EB5A6C #6CEB5A
tetradic
#5A6CEB #EB5AB4 #EBD95A #5AEB90
square
#5A6CEB #EB5AB4 #EBD95A #5AEB90
split-complementary
#5A6CEB #EB905A #B4EB5A
monochromatic
#162AB5 #233BE4 #5A6CEB #919DF2 #C7CDF8

Accessibility & contrast

On white

4.39
#5A6CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5A6CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6CEB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6CEB#FFFFFF#000000##000000
##5A6CEB1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7FEF
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#008AA1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a6ceb;
/* rgb */ color: rgb(90, 108, 235);
/* oklch */ color: oklch(58.6% 0.191 273.0);
Tailwind
colors: {
  custom: {
    50: '#9695f2',
    500: '#5a6ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5a6ceb;
$custom-light: #9695f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6ceb",
  "rgb": {
    "r": 90,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 232.552,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58605,
    "c": 0.19091,
    "h": 273
  },
  "luminance": 0.18897
}

Semantic roles & 50–950 ramp

primary
#5A6CEB
secondary
#EAE4B7
accent
#C10BDB
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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