#5741C8#5741C8

#5741C8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.3% C 0.199 H 283.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5741C8
RGBrgb(87, 65, 200)
HSLhsl(250, 55%, 52%)
HSVhsv(250, 68%, 78%)
CMYKcmyk(56.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(37.80, 45.57, -67.20)
CIE-LCHlch(37.80, 81.19, 304.14°)
OKLaboklab(48.33% 0.0465 -0.1933)
OKLCHoklch(48.33% 0.199 283.5)
XYZxyz(16.2429, 9.9760, 55.7020)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741C8 #B2C841
analogous
#416FC8 #5741C8 #9B41C8
triadic
#5741C8 #C85741 #41C857
tetradic
#5741C8 #C8416F #B2C841 #41C89B
square
#5741C8 #C8416F #B2C841 #41C89B
split-complementary
#5741C8 #C89B41 #6FC841
monochromatic
#2D206F #402E9E #5741C8 #8170D6 #ABA0E3

Accessibility & contrast

On white

7.01
#5741C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5741C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741C8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741C8#FFFFFF#000000##FFFFFF
##5741C81.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#1D647F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5741c8;
/* rgb */ color: rgb(87, 65, 200);
/* oklch */ color: oklch(48.3% 0.199 283.5);
Tailwind
colors: {
  custom: {
    50: '#9177da',
    500: '#5741c8',
    950: '#000000',
  },
}
SCSS
$custom: #5741c8;
$custom-light: #9177da;
$custom-dark: #000000;
JSON
{
  "hex": "#5741c8",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 249.778,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.19882,
    "h": 283.5
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#5741C8
secondary
#C6D095
accent
#DE49C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5741C8

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

Preview Lab → · Contrast checker → · Palette generator →

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