#5751CA#5751CA

#5751CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.182 H 280.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5751CA
RGBrgb(87, 81, 202)
HSLhsl(243, 53%, 55%)
HSVhsv(243, 60%, 79%)
CMYKcmyk(56.9%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.49, 36.80, -62.34)
CIE-LCHlch(41.49, 72.39, 300.56°)
OKLaboklab(51.07% 0.0316 -0.179)
OKLCHoklch(51.07% 0.182 280)
XYZxyz(17.5302, 12.1742, 57.2918)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751CA #C4CA51
analogous
#5187CA #5751CA #9351CA
triadic
#5751CA #CA5751 #51CA57
tetradic
#5751CA #CA5187 #C4CA51 #51CA93
square
#5751CA #CA5187 #C4CA51 #51CA93
split-complementary
#5751CA #CA9351 #87CA51
monochromatic
#2A257B #3A34AA #5751CA #8480D8 #B2AFE7

Accessibility & contrast

On white

6.11
#5751CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5751CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751CA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751CA#FFFFFF#000000##FFFFFF
##5751CA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#156E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5751ca;
/* rgb */ color: rgb(87, 81, 202);
/* oklch */ color: oklch(51.1% 0.182 280.0);
Tailwind
colors: {
  custom: {
    50: '#9182db',
    500: '#5751ca',
    950: '#000000',
  },
}
SCSS
$custom: #5751ca;
$custom-light: #9182db;
$custom-dark: #000000;
JSON
{
  "hex": "#5751ca",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 242.975,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51071,
    "c": 0.18177,
    "h": 280
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#5751CA
secondary
#D2D5A2
accent
#DD4BD5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5751CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5751CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva