#5741DB#5741DB

#5741DB is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.222 H 281.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5741DB
RGBrgb(87, 65, 219)
HSLhsl(249, 68%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(60.3%, 70.3%, 0%, 14.1%)
CIE-LABlab(39.45, 51.31, -75.47)
CIE-LCHlch(39.45, 91.26, 304.21°)
OKLaboklab(50.02% 0.0433 -0.2175)
OKLCHoklch(50.02% 0.222 281.3)
XYZxyz(18.6029, 10.9200, 68.1316)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741DB #C5DB41
analogous
#4178DB #5741DB #A441DB
triadic
#5741DB #DB5741 #41DB57
tetradic
#5741DB #DB4178 #C5DB41 #41DBA4
square
#5741DB #DB4178 #C5DB41 #41DBA4
split-complementary
#5741DB #DBA441 #78DB41
monochromatic
#291A88 #3923BB #5741DB #8474E5 #B2A8EE

Accessibility & contrast

On white

6.60
#5741DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5741DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741DB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741DB#FFFFFF#000000##FFFFFF
##5741DB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0057D8
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5741db;
/* rgb */ color: rgb(87, 65, 219);
/* oklch */ color: oklch(50.0% 0.222 281.3);
Tailwind
colors: {
  custom: {
    50: '#9578e7',
    500: '#5741db',
    950: '#000000',
  },
}
SCSS
$custom: #5741db;
$custom-light: #9578e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5741db",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 248.571,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50017,
    "c": 0.22182,
    "h": 281.3
  },
  "luminance": 0.10921
}

Semantic roles & 50–950 ramp

primary
#5741DB
secondary
#D3DC9C
accent
#EB3DD2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5741DB

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

Preview Lab → · Contrast checker → · Palette generator →

#5741DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva