#5948CE#5948CE

#5948CE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.1% C 0.198 H 282.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5948CE
RGBrgb(89, 72, 206)
HSLhsl(248, 58%, 55%)
HSVhsv(248, 65%, 81%)
CMYKcmyk(56.8%, 65%, 0%, 19.2%)
CIE-LABlab(39.94, 43.74, -67.18)
CIE-LCHlch(39.94, 80.16, 303.07°)
OKLaboklab(50.07% 0.0422 -0.1932)
OKLCHoklch(50.07% 0.198 282.3)
XYZxyz(17.5743, 11.2137, 59.6189)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948CE #BDCE48
analogous
#487ACE #5948CE #9C48CE
triadic
#5948CE #CE5948 #48CE59
tetradic
#5948CE #CE487A #BDCE48 #48CE9C
square
#5948CE #CE487A #BDCE48 #48CE9C
split-complementary
#5948CE #CE9C48 #7ACE48
monochromatic
#2C217B #3E2EAB #5948CE #8578DB #B1A9E8

Accessibility & contrast

On white

6.48
#5948CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5948CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948CE
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948CE#FFFFFF#000000##FFFFFF
##5948CE1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#1A6A85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5948ce;
/* rgb */ color: rgb(89, 72, 206);
/* oklch */ color: oklch(50.1% 0.198 282.3);
Tailwind
colors: {
  custom: {
    50: '#937cde',
    500: '#5948ce',
    950: '#000000',
  },
}
SCSS
$custom: #5948ce;
$custom-light: #937cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5948ce",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 247.612,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50073,
    "c": 0.19775,
    "h": 282.3
  },
  "luminance": 0.11215
}

Semantic roles & 50–950 ramp

primary
#5948CE
secondary
#CED59D
accent
#E147CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5948CE

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

Preview Lab → · Contrast checker → · Palette generator →

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