#5948CD#5948CD

#5948CD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.0% C 0.196 H 282.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5948CD
RGBrgb(89, 72, 205)
HSLhsl(248, 57%, 54%)
HSVhsv(248, 65%, 80%)
CMYKcmyk(56.6%, 64.9%, 0%, 19.6%)
CIE-LABlab(39.86, 43.43, -66.73)
CIE-LCHlch(39.86, 79.62, 303.06°)
OKLaboklab(49.99% 0.0423 -0.1919)
OKLCHoklch(49.99% 0.196 282.4)
XYZxyz(17.4532, 11.1652, 58.9812)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948CD #BCCD48
analogous
#487ACD #5948CD #9C48CD
triadic
#5948CD #CD5948 #48CD59
tetradic
#5948CD #CD487A #BCCD48 #48CD9C
square
#5948CD #CD487A #BCCD48 #48CD9C
split-complementary
#5948CD #CD9C48 #7ACD48
monochromatic
#2C2179 #3E2EA9 #5948CD #8578DA #B0A8E7

Accessibility & contrast

On white

6.50
#5948CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5948CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948CD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948CD#FFFFFF#000000##FFFFFF
##5948CD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#1C6984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5948cd;
/* rgb */ color: rgb(89, 72, 205);
/* oklch */ color: oklch(50.0% 0.196 282.4);
Tailwind
colors: {
  custom: {
    50: '#937cdd',
    500: '#5948cd',
    950: '#000000',
  },
}
SCSS
$custom: #5948cd;
$custom-light: #937cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5948cd",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 247.669,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49989,
    "c": 0.19648,
    "h": 282.4
  },
  "luminance": 0.11166
}

Semantic roles & 50–950 ramp

primary
#5948CD
secondary
#CDD59C
accent
#E047CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5948CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5948CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva