#5948E8#5948E8

#5948E8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.3% C 0.230 H 279.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5948E8
RGBrgb(89, 72, 232)
HSLhsl(246, 78%, 60%)
HSVhsv(246, 69%, 91%)
CMYKcmyk(61.6%, 69%, 0%, 9%)
CIE-LABlab(42.13, 51.71, -78.47)
CIE-LCHlch(42.13, 93.97, 303.38°)
OKLaboklab(52.32% 0.0386 -0.2263)
OKLCHoklch(52.32% 0.23 279.7)
XYZxyz(20.9980, 12.5832, 77.6506)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948E8 #D7E848
analogous
#4887E8 #5948E8 #A948E8
triadic
#5948E8 #E85948 #48E859
tetradic
#5948E8 #E84887 #D7E848 #48E8A9
square
#5948E8 #E84887 #D7E848 #48E8A9
split-complementary
#5948E8 #E8A948 #87E848
monochromatic
#2314A1 #2F1BD8 #5948E8 #8A7EEF #BCB5F6

Accessibility & contrast

On white

5.97
#5948E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5948E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948E8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948E8#FFFFFF#000000##FFFFFF
##5948E81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069ED
Deuteranopia (green-blind)
#005DE5
Tritanopia (blue-blind)
#007393
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5948e8;
/* rgb */ color: rgb(89, 72, 232);
/* oklch */ color: oklch(52.3% 0.230 279.7);
Tailwind
colors: {
  custom: {
    50: '#977df1',
    500: '#5948e8',
    950: '#000000',
  },
}
SCSS
$custom: #5948e8;
$custom-light: #977df1;
$custom-dark: #000000;
JSON
{
  "hex": "#5948e8",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 232
  },
  "hsl": {
    "h": 246.375,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52324,
    "c": 0.22955,
    "h": 279.7
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#5948E8
secondary
#DEE5A7
accent
#F434E0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5948E8

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

Preview Lab → · Contrast checker → · Palette generator →

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