#5A7FC2#5A7FC2

#5A7FC2 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 59.9% C 0.111 H 261.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5A7FC2
RGBrgb(90, 127, 194)
HSLhsl(219, 46%, 56%)
HSVhsv(219, 54%, 76%)
CMYKcmyk(53.6%, 34.5%, 0%, 23.9%)
CIE-LABlab(53.22, 6.49, -38.96)
CIE-LCHlch(53.22, 39.50, 279.46°)
OKLaboklab(59.87% -0.0162 -0.1099)
OKLCHoklch(59.87% 0.111 261.6)
XYZxyz(21.5401, 21.2458, 53.9943)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FC2 #C29D5A
analogous
#5AB3C2 #5A7FC2 #695AC2
triadic
#5A7FC2 #C25A7F #7FC25A
tetradic
#5A7FC2 #C25AB3 #C29D5A #5AC269
square
#5A7FC2 #C25AB3 #C29D5A #5AC269
split-complementary
#5A7FC2 #C2695A #B3C25A
monochromatic
#2C4676 #3C61A3 #5A7FC2 #87A2D3 #B3C4E3

Accessibility & contrast

On white

4.00
#5A7FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#5A7FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FC2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FC2#FFFFFF#000000##000000
##5A7FC21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C5
Deuteranopia (green-blind)
#587BC1
Tritanopia (blue-blind)
#228E97
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7fc2;
/* rgb */ color: rgb(90, 127, 194);
/* oklch */ color: oklch(59.9% 0.111 261.6);
Tailwind
colors: {
  custom: {
    50: '#8fa3d5',
    500: '#5a7fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fc2;
$custom-light: #8fa3d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fc2",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 218.654,
    "s": 46.018,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59865,
    "c": 0.11114,
    "h": 261.6
  },
  "luminance": 0.21247
}

Semantic roles & 50–950 ramp

primary
#5A7FC2
secondary
#D2C2A6
accent
#A752D6
background
#F9FAFD
surface
#F1F3FA
border
#CBCDD3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5A7FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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