#5A5FDF#5A5FDF

#5A5FDF is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.4% C 0.191 H 276.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A5FDF
RGBrgb(90, 95, 223)
HSLhsl(238, 68%, 61%)
HSVhsv(238, 60%, 87%)
CMYKcmyk(59.6%, 57.4%, 0%, 12.5%)
CIE-LABlab(46.56, 35.59, -66.13)
CIE-LCHlch(46.56, 75.10, 298.29°)
OKLaboklab(55.35% 0.0216 -0.19)
OKLCHoklch(55.35% 0.191 276.5)
XYZxyz(21.6236, 15.6841, 71.6856)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FDF #DFDA5A
analogous
#5AA2DF #5A5FDF #985ADF
triadic
#5A5FDF #DF5A5F #5FDF5A
tetradic
#5A5FDF #DF5AA2 #DFDA5A #5ADF98
square
#5A5FDF #DF5AA2 #DFDA5A #5ADF98
split-complementary
#5A5FDF #DF985A #A2DF5A
monochromatic
#1F24A0 #292FD3 #5A5FDF #8D91E9 #C1C2F3

Accessibility & contrast

On white

5.08
#5A5FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5A5FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FDF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FDF#FFFFFF#000000##FFFFFF
##5A5FDF1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0069DC
Tritanopia (blue-blind)
#007E96
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5fdf;
/* rgb */ color: rgb(90, 95, 223);
/* oklch */ color: oklch(55.4% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#958cea',
    500: '#5a5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fdf;
$custom-light: #958cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fdf",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 237.744,
    "s": 67.513,
    "l": 61.373
  },
  "oklch": {
    "l": 0.55352,
    "c": 0.19119,
    "h": 276.5
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#5A5FDF
secondary
#E3E1B2
accent
#C816CF
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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