#5948D9#5948D9

#5948D9 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.0% C 0.211 H 281.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5948D9
RGBrgb(89, 72, 217)
HSLhsl(247, 66%, 57%)
HSVhsv(247, 67%, 85%)
CMYKcmyk(59%, 66.8%, 0%, 14.9%)
CIE-LABlab(40.84, 47.12, -72.03)
CIE-LCHlch(40.84, 86.07, 303.19°)
OKLaboklab(51.01% 0.0409 -0.2074)
OKLCHoklch(51.01% 0.211 281.1)
XYZxyz(18.9576, 11.7670, 66.9045)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948D9 #C8D948
analogous
#4880D9 #5948D9 #A148D9
triadic
#5948D9 #D95948 #48D959
tetradic
#5948D9 #D94880 #C8D948 #48D9A1
square
#5948D9 #D94880 #C8D948 #48D9A1
split-complementary
#5948D9 #D9A148 #80D948
monochromatic
#291D8A #3927BD #5948D9 #877BE4 #B5ADEE

Accessibility & contrast

On white

6.26
#5948D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5948D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948D9
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948D9#FFFFFF#000000##FFFFFF
##5948D91.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5948d9;
/* rgb */ color: rgb(89, 72, 217);
/* oklch */ color: oklch(51.0% 0.211 281.1);
Tailwind
colors: {
  custom: {
    50: '#957ce6',
    500: '#5948d9',
    950: '#000000',
  },
}
SCSS
$custom: #5948d9;
$custom-light: #957ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5948d9",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 247.034,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51007,
    "c": 0.21139,
    "h": 281.1
  },
  "luminance": 0.11768
}

Semantic roles & 50–950 ramp

primary
#5948D9
secondary
#D5DCA1
accent
#E93FD5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5948D9

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

Preview Lab → · Contrast checker → · Palette generator →

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