#5A6FEA#5A6FEA

#5A6FEA is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.1% C 0.186 H 272.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A6FEA
RGBrgb(90, 111, 234)
HSLhsl(231, 77%, 64%)
HSVhsv(231, 62%, 92%)
CMYKcmyk(61.5%, 52.6%, 0%, 8.2%)
CIE-LABlab(51.25, 29.43, -64.74)
CIE-LCHlch(51.25, 71.12, 294.44°)
OKLaboklab(59.1% 0.0071 -0.1857)
OKLCHoklch(59.1% 0.186 272.2)
XYZxyz(24.7472, 19.4810, 80.2820)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FEA #EAD55A
analogous
#5AB7EA #5A6FEA #8D5AEA
triadic
#5A6FEA #EA5A6F #6FEA5A
tetradic
#5A6FEA #EA5AB7 #EAD55A #5AEA8D
square
#5A6FEA #EA5AB7 #EAD55A #5AEA8D
split-complementary
#5A6FEA #EA8D5A #B7EA5A
monochromatic
#172EB3 #2440E3 #5A6FEA #909EF1 #C7CEF8

Accessibility & contrast

On white

4.29
#5A6FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5A6FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FEA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FEA#FFFFFF#000000##000000
##5A6FEA1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EE
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#008CA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a6fea;
/* rgb */ color: rgb(90, 111, 234);
/* oklch */ color: oklch(59.1% 0.186 272.2);
Tailwind
colors: {
  custom: {
    50: '#9698f1',
    500: '#5a6fea',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fea;
$custom-light: #9698f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fea",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 234
  },
  "hsl": {
    "h": 231.25,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59095,
    "c": 0.18585,
    "h": 272.2
  },
  "luminance": 0.19483
}

Semantic roles & 50–950 ramp

primary
#5A6FEA
secondary
#E9E2B6
accent
#BC0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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