#5745F1#5745F1

#5745F1 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.6% C 0.244 H 278.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5745F1
RGBrgb(87, 69, 241)
HSLhsl(246, 86%, 61%)
HSVhsv(246, 71%, 95%)
CMYKcmyk(63.9%, 71.4%, 0%, 5.5%)
CIE-LABlab(42.20, 55.80, -83.43)
CIE-LCHlch(42.20, 100.37, 303.77°)
OKLaboklab(52.59% 0.0365 -0.2408)
OKLCHoklch(52.59% 0.244 278.6)
XYZxyz(21.9307, 12.6316, 84.4845)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745F1 #DFF145
analogous
#4589F1 #5745F1 #AD45F1
triadic
#5745F1 #F15745 #45F157
tetradic
#5745F1 #F14589 #DFF145 #45F1AD
square
#5745F1 #F14589 #DFF145 #45F1AD
split-complementary
#5745F1 #F1AD45 #89F145
monochromatic
#1E0DAE #2811E7 #5745F1 #8A7EF5 #BEB7FA

Accessibility & contrast

On white

5.95
#5745F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5745F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5745F1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5745F1#FFFFFF#000000##FFFFFF
##5745F11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF6
Deuteranopia (green-blind)
#005DEE
Tritanopia (blue-blind)
#007597
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5745f1;
/* rgb */ color: rgb(87, 69, 241);
/* oklch */ color: oklch(52.6% 0.244 278.6);
Tailwind
colors: {
  custom: {
    50: '#987bf7',
    500: '#5745f1',
    950: '#000000',
  },
}
SCSS
$custom: #5745f1;
$custom-light: #987bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5745f1",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 246.279,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52585,
    "c": 0.2436,
    "h": 278.6
  },
  "luminance": 0.12633
}

Semantic roles & 50–950 ramp

primary
#5745F1
secondary
#E3E9A8
accent
#E303CB
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5745F1

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

Preview Lab → · Contrast checker → · Palette generator →

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