#5A5FBC#5A5FBC

#5A5FBC is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.9% C 0.143 H 278.0°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5A5FBC
RGBrgb(90, 95, 188)
HSLhsl(237, 42%, 55%)
HSVhsv(237, 52%, 74%)
CMYKcmyk(52.1%, 49.5%, 0%, 26.3%)
CIE-LABlab(44.22, 24.26, -49.81)
CIE-LCHlch(44.22, 55.40, 295.97°)
OKLaboklab(52.86% 0.0199 -0.142)
OKLCHoklch(52.86% 0.143 278)
XYZxyz(17.3829, 13.9879, 49.3512)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FBC #BCB75A
analogous
#5A90BC #5A5FBC #865ABC
triadic
#5A5FBC #BC5A5F #5FBC5A
tetradic
#5A5FBC #BC5A90 #BCB75A #5ABC86
square
#5A5FBC #BC5A90 #BCB75A #5ABC86
split-complementary
#5A5FBC #BC865A #90BC5A
monochromatic
#2D306F #3F439A #5A5FBC #8689CE #B1B3DF

Accessibility & contrast

On white

5.53
#5A5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FBC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FBC#FFFFFF#000000##FFFFFF
##5A5FBC1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336DBF
Deuteranopia (green-blind)
#2865BA
Tritanopia (blue-blind)
#307384
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5fbc;
/* rgb */ color: rgb(90, 95, 188);
/* oklch */ color: oklch(52.9% 0.143 278.0);
Tailwind
colors: {
  custom: {
    50: '#8f8cd1',
    500: '#5a5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fbc;
$custom-light: #8f8cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fbc",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 236.939,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52855,
    "c": 0.14335,
    "h": 278
  },
  "luminance": 0.13989
}

Semantic roles & 50–950 ramp

primary
#5A5FBC
secondary
#CECCA4
accent
#CC56D2
background
#F9F8FC
surface
#F1F0F9
border
#CBCBD2
text
#0D0C14
muted
#7E7D82

Preview Lab

Preview with #5A5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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