#5740DF#5740DF

#5740DF is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.228 H 281.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5740DF
RGBrgb(87, 64, 223)
HSLhsl(249, 71%, 56%)
HSVhsv(249, 71%, 87%)
CMYKcmyk(61%, 71.3%, 0%, 12.5%)
CIE-LABlab(39.61, 53.05, -77.48)
CIE-LCHlch(39.61, 93.90, 304.40°)
OKLaboklab(50.25% 0.0433 -0.2234)
OKLCHoklch(50.25% 0.228 281)
XYZxyz(19.0790, 11.0193, 70.9193)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740DF #C8DF40
analogous
#4079DF #5740DF #A740DF
triadic
#5740DF #DF5740 #40DF57
tetradic
#5740DF #DF4079 #C8DF40 #40DFA7
square
#5740DF #DF4079 #C8DF40 #40DFA7
split-complementary
#5740DF #DFA740 #79DF40
monochromatic
#29188D #3820C1 #5740DF #8574E8 #B3A9F1

Accessibility & contrast

On white

6.55
#5740DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5740DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740DF
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740DF#FFFFFF#000000##FFFFFF
##5740DF1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0057DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5740df;
/* rgb */ color: rgb(87, 64, 223);
/* oklch */ color: oklch(50.2% 0.228 281.0);
Tailwind
colors: {
  custom: {
    50: '#9577ea',
    500: '#5740df',
    950: '#000000',
  },
}
SCSS
$custom: #5740df;
$custom-light: #9577ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5740df",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 248.679,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50246,
    "c": 0.22759,
    "h": 281
  },
  "luminance": 0.11021
}

Semantic roles & 50–950 ramp

primary
#5740DF
secondary
#D5DE9D
accent
#EE3AD4
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5740DF

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

Preview Lab → · Contrast checker → · Palette generator →

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