#5948B2#5948B2

#5948B2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.8% C 0.162 H 285.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5948B2
RGBrgb(89, 72, 178)
HSLhsl(250, 42%, 49%)
HSVhsv(250, 60%, 70%)
CMYKcmyk(50%, 59.6%, 0%, 30.2%)
CIE-LABlab(37.79, 35.12, -54.30)
CIE-LCHlch(37.79, 64.67, 302.89°)
OKLaboklab(47.83% 0.0442 -0.1553)
OKLCHoklch(47.83% 0.162 285.9)
XYZxyz(14.4707, 9.9722, 43.2732)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948B2 #A1B248
analogous
#486CB2 #5948B2 #8E48B2
triadic
#5948B2 #B25948 #48B259
tetradic
#5948B2 #B2486C #A1B248 #48B28E
square
#5948B2 #B2486C #A1B248 #48B28E
split-complementary
#5948B2 #B28E48 #6CB248
monochromatic
#2D255B #433686 #5948B2 #7F71C6 #A69DD7

Accessibility & contrast

On white

7.01
#5948B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5948B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5948B2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948B2#FFFFFF#000000##FFFFFF
##5948B21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#396076
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5948b2;
/* rgb */ color: rgb(89, 72, 178);
/* oklch */ color: oklch(47.8% 0.162 285.9);
Tailwind
colors: {
  custom: {
    50: '#8f7cca',
    500: '#5948b2',
    950: '#000000',
  },
}
SCSS
$custom: #5948b2;
$custom-light: #8f7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5948b2",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 249.623,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47834,
    "c": 0.16152,
    "h": 285.9
  },
  "luminance": 0.09973
}

Semantic roles & 50–950 ramp

primary
#5948B2
secondary
#BCC492
accent
#D256BE
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5948B2

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

Preview Lab → · Contrast checker → · Palette generator →

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