#5745C2#5745C2

#5745C2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.4% C 0.186 H 283.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5745C2
RGBrgb(87, 69, 194)
HSLhsl(249, 51%, 52%)
HSVhsv(249, 64%, 76%)
CMYKcmyk(55.2%, 64.4%, 0%, 23.9%)
CIE-LABlab(38.16, 41.44, -63.12)
CIE-LCHlch(38.16, 75.51, 303.29°)
OKLaboklab(48.44% 0.0436 -0.1813)
OKLCHoklch(48.44% 0.187 283.5)
XYZxyz(15.7932, 10.1766, 52.1605)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745C2 #B0C245
analogous
#4572C2 #5745C2 #9645C2
triadic
#5745C2 #C25745 #45C257
tetradic
#5745C2 #C24572 #B0C245 #45C296
square
#5745C2 #C24572 #B0C245 #45C296
split-complementary
#5745C2 #C29645 #72C245
monochromatic
#2D236A #413298 #5745C2 #8173D1 #AAA1E0

Accessibility & contrast

On white

6.92
#5745C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5745C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5745C2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5745C2#FFFFFF#000000##FFFFFF
##5745C21.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#25647D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5745c2;
/* rgb */ color: rgb(87, 69, 194);
/* oklch */ color: oklch(48.4% 0.186 283.5);
Tailwind
colors: {
  custom: {
    50: '#907ad5',
    500: '#5745c2',
    950: '#000000',
  },
}
SCSS
$custom: #5745c2;
$custom-light: #907ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5745c2",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 248.64,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4844,
    "c": 0.1865,
    "h": 283.5
  },
  "luminance": 0.10178
}

Semantic roles & 50–950 ramp

primary
#5745C2
secondary
#C5CD96
accent
#DA4EC6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5745C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5745C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva