#5A79EF#5A79EF

#5A79EF is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.4% C 0.180 H 269.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A79EF
RGBrgb(90, 121, 239)
HSLhsl(228, 82%, 65%)
HSVhsv(228, 62%, 94%)
CMYKcmyk(62.3%, 49.4%, 0%, 6.3%)
CIE-LABlab(54.11, 24.97, -62.92)
CIE-LCHlch(54.11, 67.69, 291.65°)
OKLaboklab(61.36% -0.0019 -0.1802)
OKLCHoklch(61.36% 0.18 269.4)
XYZxyz(26.6285, 22.0781, 84.5028)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A79EF #EFD05A
analogous
#5AC3EF #5A79EF #865AEF
triadic
#5A79EF #EF5A79 #79EF5A
tetradic
#5A79EF #EF5AC3 #EFD05A #5AEF86
square
#5A79EF #EF5AC3 #EFD05A #5AEF86
split-complementary
#5A79EF #EF865A #C3EF5A
monochromatic
#1236BC #224CEA #5A79EF #92A6F4 #CAD4FA

Accessibility & contrast

On white

3.88
#5A79EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5A79EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A79EF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A79EF#FFFFFF#000000##000000
##5A79EF1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3888F3
Deuteranopia (green-blind)
#107BED
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a79ef;
/* rgb */ color: rgb(90, 121, 239);
/* oklch */ color: oklch(61.4% 0.180 269.4);
Tailwind
colors: {
  custom: {
    50: '#969ff5',
    500: '#5a79ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a79ef;
$custom-light: #969ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a79ef",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 239
  },
  "hsl": {
    "h": 227.517,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61362,
    "c": 0.18024,
    "h": 269.4
  },
  "luminance": 0.2208
}

Semantic roles & 50–950 ramp

primary
#5A79EF
secondary
#ECE1B9
accent
#B207DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A79EF

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

Preview Lab → · Contrast checker → · Palette generator →

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