#5A7FDC#5A7FDC

#5A7FDC is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.4% C 0.147 H 265.9°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5A7FDC
RGBrgb(90, 127, 220)
HSLhsl(223, 65%, 61%)
HSVhsv(223, 59%, 86%)
CMYKcmyk(59.1%, 42.3%, 0%, 13.7%)
CIE-LABlab(54.57, 14.97, -51.54)
CIE-LCHlch(54.57, 53.67, 286.19°)
OKLaboklab(61.35% -0.0105 -0.1467)
OKLCHoklch(61.35% 0.147 265.9)
XYZxyz(24.7197, 22.5177, 70.7399)
Luminance0.2252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FDC #DCB75A
analogous
#5AC0DC #5A7FDC #765ADC
triadic
#5A7FDC #DC5A7F #7FDC5A
tetradic
#5A7FDC #DC5AC0 #DCB75A #5ADC76
square
#5A7FDC #DC5AC0 #DCB75A #5ADC76
split-complementary
#5A7FDC #DC765A #C0DC5A
monochromatic
#21449B #2C5ACD #5A7FDC #8CA6E7 #BFCDF1

Accessibility & contrast

On white

3.82
#5A7FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5A7FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FDC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FDC#FFFFFF#000000##000000
##5A7FDC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E0
Deuteranopia (green-blind)
#447DDA
Tritanopia (blue-blind)
#0094A3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7fdc;
/* rgb */ color: rgb(90, 127, 220);
/* oklch */ color: oklch(61.4% 0.147 265.9);
Tailwind
colors: {
  custom: {
    50: '#93a3e7',
    500: '#5a7fdc',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fdc;
$custom-light: #93a3e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fdc",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 220
  },
  "hsl": {
    "h": 222.923,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61354,
    "c": 0.14711,
    "h": 265.9
  },
  "luminance": 0.2252
}

Semantic roles & 50–950 ramp

primary
#5A7FDC
secondary
#E2D4B0
accent
#9A19CD
background
#F9FAFE
surface
#F2F3FC
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A7FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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