#5948E1#5948E1

#5948E1 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.7% C 0.221 H 280.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5948E1
RGBrgb(89, 72, 225)
HSLhsl(247, 72%, 58%)
HSVhsv(247, 68%, 88%)
CMYKcmyk(60.4%, 68%, 0%, 11.8%)
CIE-LABlab(41.52, 49.57, -75.48)
CIE-LCHlch(41.52, 90.31, 303.29°)
OKLaboklab(51.7% 0.0397 -0.2175)
OKLCHoklch(51.7% 0.221 280.3)
XYZxyz(20.0235, 12.1934, 72.5180)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948E1 #D0E148
analogous
#4883E1 #5948E1 #A648E1
triadic
#5948E1 #E15948 #48E159
tetradic
#5948E1 #E14883 #D0E148 #48E1A6
square
#5948E1 #E14883 #D0E148 #48E1A6
split-complementary
#5948E1 #E1A648 #83E148
monochromatic
#271996 #3421CB #5948E1 #897DEA #B8B1F2

Accessibility & contrast

On white

6.11
#5948E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5948E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948E1
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948E1#FFFFFF#000000##FFFFFF
##5948E11.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#00718F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5948e1;
/* rgb */ color: rgb(89, 72, 225);
/* oklch */ color: oklch(51.7% 0.221 280.3);
Tailwind
colors: {
  custom: {
    50: '#967dec',
    500: '#5948e1',
    950: '#000000',
  },
}
SCSS
$custom: #5948e1;
$custom-light: #967dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5948e1",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 246.667,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51704,
    "c": 0.22115,
    "h": 280.3
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#5948E1
secondary
#DAE1A4
accent
#EF39DA
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5948E1

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

Preview Lab → · Contrast checker → · Palette generator →

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