#5845DB#5845DB

#5845DB is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.7% C 0.217 H 281.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5845DB
RGBrgb(88, 69, 219)
HSLhsl(248, 68%, 56%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(59.8%, 68.5%, 0%, 14.1%)
CIE-LABlab(40.32, 49.27, -74.03)
CIE-LCHlch(40.32, 88.93, 303.64°)
OKLaboklab(50.66% 0.0416 -0.2133)
OKLCHoklch(50.66% 0.217 281)
XYZxyz(18.9348, 11.4441, 68.2152)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845DB #C8DB45
analogous
#457DDB #5845DB #A345DB
triadic
#5845DB #DB5845 #45DB58
tetradic
#5845DB #DB457D #C8DB45 #45DBA3
square
#5845DB #DB457D #C8DB45 #45DBA3
split-complementary
#5845DB #DBA345 #7DDB45
monochromatic
#291B8B #3825BE #5845DB #8678E5 #B4ACEF

Accessibility & contrast

On white

6.38
#5845DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5845DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845DB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845DB#FFFFFF#000000##FFFFFF
##5845DB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5845db;
/* rgb */ color: rgb(88, 69, 219);
/* oklch */ color: oklch(50.7% 0.217 281.0);
Tailwind
colors: {
  custom: {
    50: '#957ae7',
    500: '#5845db',
    950: '#000000',
  },
}
SCSS
$custom: #5845db;
$custom-light: #957ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5845db",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 247.6,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50662,
    "c": 0.21735,
    "h": 281
  },
  "luminance": 0.11445
}

Semantic roles & 50–950 ramp

primary
#5845DB
secondary
#D5DD9F
accent
#EA3DD5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5845DB

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

Preview Lab → · Contrast checker → · Palette generator →

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