#5740CB#5740CB

#5740CB is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.204 H 283.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5740CB
RGBrgb(87, 64, 203)
HSLhsl(250, 57%, 52%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(57.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.85, 47.04, -68.86)
CIE-LCHlch(37.85, 83.39, 304.34°)
OKLaboklab(48.45% 0.0468 -0.1982)
OKLCHoklch(48.45% 0.204 283.3)
XYZxyz(16.5401, 10.0038, 57.5477)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CB #B4CB40
analogous
#406FCB #5740CB #9D40CB
triadic
#5740CB #CB5740 #40CB57
tetradic
#5740CB #CB406F #B4CB40 #40CB9D
square
#5740CB #CB406F #B4CB40 #40CB9D
split-complementary
#5740CB #CB9D40 #6FCB40
monochromatic
#2D1F72 #402CA2 #5740CB #8170D8 #ACA0E5

Accessibility & contrast

On white

7.00
#5740CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5740CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740CB
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CB#FFFFFF#000000##FFFFFF
##5740CB1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#186480
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5740cb;
/* rgb */ color: rgb(87, 64, 203);
/* oklch */ color: oklch(48.4% 0.204 283.3);
Tailwind
colors: {
  custom: {
    50: '#9277dc',
    500: '#5740cb',
    950: '#000000',
  },
}
SCSS
$custom: #5740cb;
$custom-light: #9277dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5740cb",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 249.928,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.20365,
    "h": 283.3
  },
  "luminance": 0.10005
}

Semantic roles & 50–950 ramp

primary
#5740CB
secondary
#C8D295
accent
#E047C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CB

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

Preview Lab → · Contrast checker → · Palette generator →

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