#5A5FCF#5A5FCF

#5A5FCF is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.2% C 0.170 H 277.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A5FCF
RGBrgb(90, 95, 207)
HSLhsl(237, 55%, 58%)
HSVhsv(237, 57%, 81%)
CMYKcmyk(56.5%, 54.1%, 0%, 18.8%)
CIE-LABlab(45.44, 30.39, -58.81)
CIE-LCHlch(45.44, 66.20, 297.33°)
OKLaboklab(54.17% 0.0212 -0.1684)
OKLCHoklch(54.17% 0.17 277.2)
XYZxyz(19.5675, 14.8617, 60.8569)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCF #CFCA5A
analogous
#5A99CF #5A5FCF #8F5ACF
triadic
#5A5FCF #CF5A5F #5FCF5A
tetradic
#5A5FCF #CF5A99 #CFCA5A #5ACF8F
square
#5A5FCF #CF5A99 #CFCA5A #5ACF8F
split-complementary
#5A5FCF #CF8F5A #99CF5A
monochromatic
#272B87 #353BB7 #5A5FCF #898DDD #B9BBEB

Accessibility & contrast

On white

5.29
#5A5FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5A5FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FCF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FCF#FFFFFF#000000##FFFFFF
##5A5FCF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1671D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#16798E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5fcf;
/* rgb */ color: rgb(90, 95, 207);
/* oklch */ color: oklch(54.2% 0.170 277.2);
Tailwind
colors: {
  custom: {
    50: '#928cde',
    500: '#5a5fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fcf;
$custom-light: #928cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fcf",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 237.436,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54171,
    "c": 0.16975,
    "h": 277.2
  },
  "luminance": 0.14863
}

Semantic roles & 50–950 ramp

primary
#5A5FCF
secondary
#DAD8AB
accent
#D84ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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