#5948C2#5948C2

#5948C2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.1% C 0.182 H 283.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5948C2
RGBrgb(89, 72, 194)
HSLhsl(248, 50%, 52%)
HSVhsv(248, 63%, 76%)
CMYKcmyk(54.1%, 62.9%, 0%, 23.9%)
CIE-LABlab(38.99, 40.04, -61.75)
CIE-LCHlch(38.99, 73.60, 302.96°)
OKLaboklab(49.09% 0.0434 -0.1773)
OKLCHoklch(49.09% 0.182 283.7)
XYZxyz(16.1718, 10.6527, 52.2325)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948C2 #B1C248
analogous
#4874C2 #5948C2 #9648C2
triadic
#5948C2 #C25948 #48C259
tetradic
#5948C2 #C24874 #B1C248 #48C296
square
#5948C2 #C24874 #B1C248 #48C296
split-complementary
#5948C2 #C29648 #74C248
monochromatic
#2E246C #41339A #5948C2 #8376D1 #ACA4E1

Accessibility & contrast

On white

6.71
#5948C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5948C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948C2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948C2#FFFFFF#000000##FFFFFF
##5948C21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#2B667E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5948c2;
/* rgb */ color: rgb(89, 72, 194);
/* oklch */ color: oklch(49.1% 0.182 283.7);
Tailwind
colors: {
  custom: {
    50: '#917cd5',
    500: '#5948c2',
    950: '#000000',
  },
}
SCSS
$custom: #5948c2;
$custom-light: #917cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5948c2",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 248.361,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49087,
    "c": 0.18248,
    "h": 283.7
  },
  "luminance": 0.10654
}

Semantic roles & 50–950 ramp

primary
#5948C2
secondary
#C6CE98
accent
#DA4EC6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5948C2

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

Preview Lab → · Contrast checker → · Palette generator →

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