#5948BF#5948BF

#5948BF is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.8% C 0.179 H 284.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5948BF
RGBrgb(89, 72, 191)
HSLhsl(249, 48%, 52%)
HSVhsv(249, 62%, 75%)
CMYKcmyk(53.4%, 62.3%, 0%, 25.1%)
CIE-LABlab(38.76, 39.11, -60.38)
CIE-LCHlch(38.76, 71.94, 302.94°)
OKLaboklab(48.85% 0.0436 -0.1732)
OKLCHoklch(48.85% 0.179 284.1)
XYZxyz(15.8383, 10.5193, 50.4760)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948BF #AEBF48
analogous
#4873BF #5948BF #9448BF
triadic
#5948BF #BF5948 #48BF59
tetradic
#5948BF #BF4873 #AEBF48 #48BF94
square
#5948BF #BF4873 #AEBF48 #48BF94
split-complementary
#5948BF #BF9448 #73BF48
monochromatic
#2E2468 #423496 #5948BF #8275CF #ABA3DF

Accessibility & contrast

On white

6.77
#5948BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5948BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948BF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948BF#FFFFFF#000000##FFFFFF
##5948BF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#2E657D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5948bf;
/* rgb */ color: rgb(89, 72, 191);
/* oklch */ color: oklch(48.8% 0.179 284.1);
Tailwind
colors: {
  custom: {
    50: '#917cd3',
    500: '#5948bf',
    950: '#000000',
  },
}
SCSS
$custom: #5948bf;
$custom-light: #917cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5948bf",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 248.571,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48847,
    "c": 0.17861,
    "h": 284.1
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#5948BF
secondary
#C4CC97
accent
#D850C4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5948BF

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

Preview Lab → · Contrast checker → · Palette generator →

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