#5945FF#5945FF

#5945FF is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 54.0% C 0.259 H 278.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5945FF
RGBrgb(89, 69, 255)
HSLhsl(246, 100%, 64%)
HSVhsv(246, 73%, 100%)
CMYKcmyk(65.1%, 72.9%, 0%, 0%)
CIE-LABlab(43.65, 60.19, -88.89)
CIE-LCHlch(43.65, 107.35, 304.10°)
OKLaboklab(54.04% 0.0363 -0.2567)
OKLCHoklch(54.04% 0.259 278.1)
XYZxyz(24.2921, 13.5980, 95.9329)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945FF #EBFF45
analogous
#458EFF #5945FF #B645FF
triadic
#5945FF #FF5945 #45FF59
tetradic
#5945FF #FF458E #EBFF45 #45FFB6
square
#5945FF #FF458E #EBFF45 #45FFB6
split-complementary
#5945FF #FFB645 #8EFF45
monochromatic
#1600CA #2208FF #5945FF #9082FF #C6BFFF

Accessibility & contrast

On white

5.65
#5945FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5945FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945FF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945FF#FFFFFF#000000##FFFFFF
##5945FF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#005FFC
Tritanopia (blue-blind)
#007A9F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5945ff;
/* rgb */ color: rgb(89, 69, 255);
/* oklch */ color: oklch(54.0% 0.259 278.1);
Tailwind
colors: {
  custom: {
    50: '#9c7cff',
    500: '#5945ff',
    950: '#000000',
  },
}
SCSS
$custom: #5945ff;
$custom-light: #9c7cff;
$custom-dark: #000000;
JSON
{
  "hex": "#5945ff",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 255
  },
  "hsl": {
    "h": 246.452,
    "s": 100,
    "l": 63.529
  },
  "oklch": {
    "l": 0.5404,
    "c": 0.25928,
    "h": 278.1
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#5945FF
secondary
#EAF1AF
accent
#E600CD
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5945FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5945FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva