#5741CB#5741CB

#5741CB is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.203 H 283.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5741CB
RGBrgb(87, 65, 203)
HSLhsl(250, 57%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(57.1%, 68%, 0%, 20.4%)
CIE-LABlab(38.05, 46.48, -68.53)
CIE-LCHlch(38.05, 82.80, 304.15°)
OKLaboklab(48.59% 0.046 -0.1972)
OKLCHoklch(48.59% 0.203 283.1)
XYZxyz(16.5969, 10.1176, 57.5667)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741CB #B5CB41
analogous
#4170CB #5741CB #9C41CB
triadic
#5741CB #CB5741 #41CB57
tetradic
#5741CB #CB4170 #B5CB41 #41CB9C
square
#5741CB #CB4170 #B5CB41 #41CB9C
split-complementary
#5741CB #CB9C41 #70CB41
monochromatic
#2D1F72 #3F2CA2 #5741CB #8171D8 #ACA1E5

Accessibility & contrast

On white

6.94
#5741CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5741CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741CB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741CB#FFFFFF#000000##FFFFFF
##5741CB1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#176581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5741cb;
/* rgb */ color: rgb(87, 65, 203);
/* oklch */ color: oklch(48.6% 0.203 283.1);
Tailwind
colors: {
  custom: {
    50: '#9277dc',
    500: '#5741cb',
    950: '#000000',
  },
}
SCSS
$custom: #5741cb;
$custom-light: #9277dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5741cb",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 249.565,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.2025,
    "h": 283.1
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#5741CB
secondary
#C8D296
accent
#E048C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5741CB

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

Preview Lab → · Contrast checker → · Palette generator →

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