#5748CB#5748CB

#5748CB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.7% C 0.194 H 281.9°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5748CB
RGBrgb(87, 72, 203)
HSLhsl(247, 56%, 54%)
HSVhsv(247, 65%, 80%)
CMYKcmyk(57.1%, 64.5%, 0%, 20.4%)
CIE-LABlab(39.53, 42.48, -66.11)
CIE-LCHlch(39.53, 78.58, 302.72°)
OKLaboklab(49.66% 0.0399 -0.1901)
OKLCHoklch(49.66% 0.194 281.9)
XYZxyz(17.0240, 10.9717, 57.7090)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5748CB #BCCB48
analogous
#487BCB #5748CB #9948CB
triadic
#5748CB #CB5748 #48CB57
tetradic
#5748CB #CB487B #BCCB48 #48CB99
square
#5748CB #CB487B #BCCB48 #48CB99
split-complementary
#5748CB #CB9948 #7BCB48
monochromatic
#2C2277 #3D2FA6 #5748CB #8378D9 #AFA7E6

Accessibility & contrast

On white

6.57
#5748CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5748CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5748CB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5748CB#FFFFFF#000000##FFFFFF
##5748CB1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#166983
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5748cb;
/* rgb */ color: rgb(87, 72, 203);
/* oklch */ color: oklch(49.7% 0.194 281.9);
Tailwind
colors: {
  custom: {
    50: '#917cdc',
    500: '#5748cb',
    950: '#000000',
  },
}
SCSS
$custom: #5748cb;
$custom-light: #917cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5748cb",
  "rgb": {
    "r": 87,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 246.87,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49663,
    "c": 0.19426,
    "h": 281.9
  },
  "luminance": 0.10973
}

Semantic roles & 50–950 ramp

primary
#5748CB
secondary
#CDD39B
accent
#DF49CE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5748CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5748CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva