#5948CB#5948CB

#5948CB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.8% C 0.194 H 282.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5948CB
RGBrgb(89, 72, 203)
HSLhsl(248, 56%, 54%)
HSVhsv(248, 65%, 80%)
CMYKcmyk(56.2%, 64.5%, 0%, 20.4%)
CIE-LABlab(39.70, 42.81, -65.83)
CIE-LCHlch(39.70, 78.53, 303.04°)
OKLaboklab(49.82% 0.0425 -0.1892)
OKLCHoklch(49.82% 0.194 282.7)
XYZxyz(17.2134, 11.0693, 57.7179)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948CB #BACB48
analogous
#4879CB #5948CB #9B48CB
triadic
#5948CB #CB5948 #48CB59
tetradic
#5948CB #CB4879 #BACB48 #48CB9B
square
#5948CB #CB4879 #BACB48 #48CB9B
split-complementary
#5948CB #CB9B48 #79CB48
monochromatic
#2D2277 #3F2FA6 #5948CB #8478D9 #AFA7E6

Accessibility & contrast

On white

6.53
#5948CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5948CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948CB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948CB#FFFFFF#000000##FFFFFF
##5948CB1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#1F6983
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5948cb;
/* rgb */ color: rgb(89, 72, 203);
/* oklch */ color: oklch(49.8% 0.194 282.7);
Tailwind
colors: {
  custom: {
    50: '#937cdc',
    500: '#5948cb',
    950: '#000000',
  },
}
SCSS
$custom: #5948cb;
$custom-light: #937cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5948cb",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 247.786,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49823,
    "c": 0.19396,
    "h": 282.7
  },
  "luminance": 0.1107
}

Semantic roles & 50–950 ramp

primary
#5948CB
secondary
#CCD39B
accent
#DF49CC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5948CB

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

Preview Lab → · Contrast checker → · Palette generator →

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