#5845BF#5845BF

#5845BF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.3% C 0.183 H 284.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5845BF
RGBrgb(88, 69, 191)
HSLhsl(249, 49%, 51%)
HSVhsv(249, 64%, 75%)
CMYKcmyk(53.9%, 63.9%, 0%, 25.1%)
CIE-LABlab(38.01, 40.70, -61.60)
CIE-LCHlch(38.01, 73.83, 303.45°)
OKLaboklab(48.28% 0.0452 -0.1769)
OKLCHoklch(48.28% 0.183 284.3)
XYZxyz(15.5537, 10.0917, 50.4084)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845BF #ACBF45
analogous
#456FBF #5845BF #9545BF
triadic
#5845BF #BF5845 #45BF58
tetradic
#5845BF #BF456F #ACBF45 #45BF95
square
#5845BF #BF456F #ACBF45 #45BF95
split-complementary
#5845BF #BF9545 #6FBF45
monochromatic
#2E2366 #423394 #5845BF #8173CF #AAA0DE

Accessibility & contrast

On white

6.96
#5845BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5845BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845BF
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845BF#FFFFFF#000000##FFFFFF
##5845BF1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#2C637C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5845bf;
/* rgb */ color: rgb(88, 69, 191);
/* oklch */ color: oklch(48.3% 0.183 284.3);
Tailwind
colors: {
  custom: {
    50: '#907ad3',
    500: '#5845bf',
    950: '#000000',
  },
}
SCSS
$custom: #5845bf;
$custom-light: #907ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5845bf",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 249.344,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48277,
    "c": 0.18255,
    "h": 284.3
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#5845BF
secondary
#C3CB95
accent
#D84FC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5845BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5845BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva