#5948E4#5948E4

#5948E4 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.0% C 0.225 H 280.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5948E4
RGBrgb(89, 72, 228)
HSLhsl(247, 74%, 59%)
HSVhsv(247, 68%, 89%)
CMYKcmyk(61%, 68.4%, 0%, 10.6%)
CIE-LABlab(41.78, 50.49, -76.77)
CIE-LCHlch(41.78, 91.88, 303.33°)
OKLaboklab(51.97% 0.0393 -0.2213)
OKLCHoklch(51.97% 0.225 280.1)
XYZxyz(20.4363, 12.3585, 74.6922)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948E4 #D3E448
analogous
#4885E4 #5948E4 #A748E4
triadic
#5948E4 #E45948 #48E459
tetradic
#5948E4 #E44885 #D3E448 #48E4A7
square
#5948E4 #E44885 #D3E448 #48E4A7
split-complementary
#5948E4 #E4A748 #85E448
monochromatic
#25179B #321FD0 #5948E4 #897DEC #BAB3F4

Accessibility & contrast

On white

6.05
#5948E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5948E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948E4
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948E4#FFFFFF#000000##FFFFFF
##5948E41.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005DE1
Tritanopia (blue-blind)
#007291
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5948e4;
/* rgb */ color: rgb(89, 72, 228);
/* oklch */ color: oklch(52.0% 0.225 280.1);
Tailwind
colors: {
  custom: {
    50: '#977dee',
    500: '#5948e4',
    950: '#000000',
  },
}
SCSS
$custom: #5948e4;
$custom-light: #977dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5948e4",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 228
  },
  "hsl": {
    "h": 246.538,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51969,
    "c": 0.22477,
    "h": 280.1
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#5948E4
secondary
#DCE3A5
accent
#F137DD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5948E4

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

Preview Lab → · Contrast checker → · Palette generator →

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