#5948EF#5948EF

#5948EF is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 53.0% C 0.238 H 279.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5948EF
RGBrgb(89, 72, 239)
HSLhsl(246, 84%, 61%)
HSVhsv(246, 70%, 94%)
CMYKcmyk(62.8%, 69.9%, 0%, 6.3%)
CIE-LABlab(42.75, 53.83, -81.41)
CIE-LCHlch(42.75, 97.60, 303.48°)
OKLaboklab(52.96% 0.0375 -0.2349)
OKLCHoklch(52.96% 0.238 279.1)
XYZxyz(22.0122, 12.9888, 82.9917)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948EF #DEEF48
analogous
#488AEF #5948EF #AC48EF
triadic
#5948EF #EF5948 #48EF59
tetradic
#5948EF #EF488A #DEEF48 #48EFAC
square
#5948EF #EF488A #DEEF48 #48EFAC
split-complementary
#5948EF #EFAC48 #8AEF48
monochromatic
#1F0FAD #2914E6 #5948EF #8C80F4 #BFB9F9

Accessibility & contrast

On white

5.84
#5948EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5948EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948EF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948EF#FFFFFF#000000##FFFFFF
##5948EF1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5948ef;
/* rgb */ color: rgb(89, 72, 239);
/* oklch */ color: oklch(53.0% 0.238 279.1);
Tailwind
colors: {
  custom: {
    50: '#997df6',
    500: '#5948ef',
    950: '#000000',
  },
}
SCSS
$custom: #5948ef;
$custom-light: #997df6;
$custom-dark: #000000;
JSON
{
  "hex": "#5948ef",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 246.108,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52955,
    "c": 0.23786,
    "h": 279.1
  },
  "luminance": 0.12991
}

Semantic roles & 50–950 ramp

primary
#5948EF
secondary
#E2E9AA
accent
#E005CA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5948EF

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

Preview Lab → · Contrast checker → · Palette generator →

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