#5A74DF#5A74DF

#5A74DF is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.3% C 0.165 H 270.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A74DF
RGBrgb(90, 116, 223)
HSLhsl(228, 68%, 61%)
HSVhsv(228, 60%, 87%)
CMYKcmyk(59.6%, 48%, 0%, 12.5%)
CIE-LABlab(51.83, 22.69, -57.63)
CIE-LCHlch(51.83, 61.93, 291.49°)
OKLaboklab(59.31% 0.0012 -0.1647)
OKLCHoklch(59.31% 0.165 270.4)
XYZxyz(23.7767, 19.9902, 72.4033)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A74DF #DFC55A
analogous
#5AB7DF #5A74DF #835ADF
triadic
#5A74DF #DF5A74 #74DF5A
tetradic
#5A74DF #DF5AB7 #DFC55A #5ADF83
square
#5A74DF #DF5AB7 #DFC55A #5ADF83
split-complementary
#5A74DF #DF835A #B7DF5A
monochromatic
#1F38A0 #294AD3 #5A74DF #8D9FE9 #C1CAF3

Accessibility & contrast

On white

4.20
#5A74DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5A74DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A74DF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A74DF#FFFFFF#000000##000000
##5A74DF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E82E3
Deuteranopia (green-blind)
#2676DD
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a74df;
/* rgb */ color: rgb(90, 116, 223);
/* oklch */ color: oklch(59.3% 0.165 270.4);
Tailwind
colors: {
  custom: {
    50: '#949bea',
    500: '#5a74df',
    950: '#000000',
  },
}
SCSS
$custom: #5a74df;
$custom-light: #949bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a74df",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 223
  },
  "hsl": {
    "h": 228.271,
    "s": 67.513,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59311,
    "c": 0.16473,
    "h": 270.4
  },
  "luminance": 0.19992
}

Semantic roles & 50–950 ramp

primary
#5A74DF
secondary
#E3DAB2
accent
#AB16CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A74DF

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

Preview Lab → · Contrast checker → · Palette generator →

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