#5A6FCA#5A6FCA

#5A6FCA is a mid, vivid blue. Relative luminance 0.178; OKLCH L 57.0% C 0.142 H 271.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5A6FCA
RGBrgb(90, 111, 202)
HSLhsl(229, 51%, 57%)
HSVhsv(229, 55%, 79%)
CMYKcmyk(55.4%, 45%, 0%, 20.8%)
CIE-LABlab(49.26, 18.85, -49.81)
CIE-LCHlch(49.26, 53.26, 290.72°)
OKLaboklab(56.95% 0.0037 -0.1418)
OKLCHoklch(56.95% 0.142 271.5)
XYZxyz(20.5581, 17.8053, 58.2191)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FCA #CAB55A
analogous
#5AA7CA #5A6FCA #7D5ACA
triadic
#5A6FCA #CA5A6F #6FCA5A
tetradic
#5A6FCA #CA5AA7 #CAB55A #5ACA7D
square
#5A6FCA #CA5AA7 #CAB55A #5ACA7D
split-complementary
#5A6FCA #CA7D5A #A7CA5A
monochromatic
#293A80 #384EAF #5A6FCA #8897D9 #B7C0E8

Accessibility & contrast

On white

4.60
#5A6FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5A6FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6FCA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FCA#FFFFFF#000000##FFFFFF
##5A6FCA1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467ACD
Deuteranopia (green-blind)
#3870C8
Tritanopia (blue-blind)
#1A8393
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a6fca;
/* rgb */ color: rgb(90, 111, 202);
/* oklch */ color: oklch(57.0% 0.142 271.5);
Tailwind
colors: {
  custom: {
    50: '#9198db',
    500: '#5a6fca',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fca;
$custom-light: #9198db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fca",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 202
  },
  "hsl": {
    "h": 228.75,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.14188,
    "h": 271.5
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#5A6FCA
secondary
#D7CEA9
accent
#C04DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5A6FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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