#5A7DF1#5A7DF1

#5A7DF1 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.3% C 0.178 H 268.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5A7DF1
RGBrgb(90, 125, 241)
HSLhsl(226, 84%, 65%)
HSVhsv(226, 63%, 95%)
CMYKcmyk(62.7%, 48.1%, 0%, 5.5%)
CIE-LABlab(55.27, 23.20, -62.17)
CIE-LCHlch(55.27, 66.36, 290.47°)
OKLaboklab(62.28% -0.0054 -0.178)
OKLCHoklch(62.28% 0.178 268.3)
XYZxyz(27.4218, 23.1893, 86.2329)
Luminance0.2319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DF1 #F1CE5A
analogous
#5AC8F1 #5A7DF1 #835AF1
triadic
#5A7DF1 #F15A7D #7DF15A
tetradic
#5A7DF1 #F15AC8 #F1CE5A #5AF183
square
#5A7DF1 #F15AC8 #F1CE5A #5AF183
split-complementary
#5A7DF1 #F1835A #C8F15A
monochromatic
#1039C0 #2251EC #5A7DF1 #92A9F6 #CBD6FB

Accessibility & contrast

On white

3.72
#5A7DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5A7DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DF1
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DF1#FFFFFF#000000##000000
##5A7DF11.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#408CF5
Deuteranopia (green-blind)
#1F7EEF
Tritanopia (blue-blind)
#0098AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7df1;
/* rgb */ color: rgb(90, 125, 241);
/* oklch */ color: oklch(62.3% 0.178 268.3);
Tailwind
colors: {
  custom: {
    50: '#96a2f6',
    500: '#5a7df1',
    950: '#000000',
  },
}
SCSS
$custom: #5a7df1;
$custom-light: #96a2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7df1",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 241
  },
  "hsl": {
    "h": 226.093,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6228,
    "c": 0.17805,
    "h": 268.3
  },
  "luminance": 0.23192
}

Semantic roles & 50–950 ramp

primary
#5A7DF1
secondary
#EDE1BA
accent
#AE05E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0F17
muted
#7E7E85

Preview Lab

Preview with #5A7DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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