#5948EB#5948EB

#5948EB is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.6% C 0.233 H 279.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5948EB
RGBrgb(89, 72, 235)
HSLhsl(246, 80%, 60%)
HSVhsv(246, 69%, 92%)
CMYKcmyk(62.1%, 69.4%, 0%, 7.8%)
CIE-LABlab(42.39, 52.62, -79.73)
CIE-LCHlch(42.39, 95.53, 303.42°)
OKLaboklab(52.59% 0.0382 -0.23)
OKLCHoklch(52.59% 0.233 279.4)
XYZxyz(21.4278, 12.7551, 79.9139)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948EB #DAEB48
analogous
#4888EB #5948EB #AB48EB
triadic
#5948EB #EB5948 #48EB59
tetradic
#5948EB #EB4888 #DAEB48 #48EBAB
square
#5948EB #EB4888 #DAEB48 #48EBAB
split-complementary
#5948EB #EBAB48 #88EB48
monochromatic
#2212A6 #2D18DE #5948EB #8B7FF1 #BDB6F7

Accessibility & contrast

On white

5.91
#5948EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5948EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948EB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948EB#FFFFFF#000000##FFFFFF
##5948EB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF0
Deuteranopia (green-blind)
#005EE8
Tritanopia (blue-blind)
#007494
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5948eb;
/* rgb */ color: rgb(89, 72, 235);
/* oklch */ color: oklch(52.6% 0.233 279.4);
Tailwind
colors: {
  custom: {
    50: '#987df3',
    500: '#5948eb',
    950: '#000000',
  },
}
SCSS
$custom: #5948eb;
$custom-light: #987df3;
$custom-dark: #000000;
JSON
{
  "hex": "#5948eb",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 246.258,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52593,
    "c": 0.23312,
    "h": 279.4
  },
  "luminance": 0.12757
}

Semantic roles & 50–950 ramp

primary
#5948EB
secondary
#E0E7A8
accent
#DD09C7
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5948EB

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

Preview Lab → · Contrast checker → · Palette generator →

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