#5948DB#5948DB

#5948DB is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.2% C 0.214 H 280.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5948DB
RGBrgb(89, 72, 219)
HSLhsl(247, 67%, 57%)
HSVhsv(247, 67%, 86%)
CMYKcmyk(59.4%, 67.1%, 0%, 14.1%)
CIE-LABlab(41.01, 47.74, -72.90)
CIE-LCHlch(41.01, 87.13, 303.22°)
OKLaboklab(51.18% 0.0406 -0.21)
OKLCHoklch(51.18% 0.214 280.9)
XYZxyz(19.2194, 11.8717, 68.2828)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948DB #CADB48
analogous
#4881DB #5948DB #A348DB
triadic
#5948DB #DB5948 #48DB59
tetradic
#5948DB #DB4881 #CADB48 #48DBA3
square
#5948DB #DB4881 #CADB48 #48DBA3
split-complementary
#5948DB #DBA348 #81DB48
monochromatic
#291C8D #3826C0 #5948DB #877BE5 #B6AEEF

Accessibility & contrast

On white

6.22
#5948DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5948DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948DB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948DB#FFFFFF#000000##FFFFFF
##5948DB1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5948db;
/* rgb */ color: rgb(89, 72, 219);
/* oklch */ color: oklch(51.2% 0.214 280.9);
Tailwind
colors: {
  custom: {
    50: '#957ce7',
    500: '#5948db',
    950: '#000000',
  },
}
SCSS
$custom: #5948db;
$custom-light: #957ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5948db",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 246.939,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5118,
    "c": 0.21386,
    "h": 280.9
  },
  "luminance": 0.11873
}

Semantic roles & 50–950 ramp

primary
#5948DB
secondary
#D6DDA2
accent
#EA3ED6
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5948DB

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

Preview Lab → · Contrast checker → · Palette generator →

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