#5948CF#5948CF

#5948CF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.2% C 0.199 H 282.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5948CF
RGBrgb(89, 72, 207)
HSLhsl(248, 58%, 55%)
HSVhsv(248, 65%, 81%)
CMYKcmyk(57%, 65.2%, 0%, 18.8%)
CIE-LABlab(40.02, 44.05, -67.62)
CIE-LCHlch(40.02, 80.70, 303.08°)
OKLaboklab(50.16% 0.0421 -0.1945)
OKLCHoklch(50.16% 0.199 282.2)
XYZxyz(17.6962, 11.2624, 60.2608)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948CF #BECF48
analogous
#487ACF #5948CF #9D48CF
triadic
#5948CF #CF5948 #48CF59
tetradic
#5948CF #CF487A #BECF48 #48CF9D
square
#5948CF #CF487A #BECF48 #48CF9D
split-complementary
#5948CF #CF9D48 #7ACF48
monochromatic
#2C217C #3D2DAD #5948CF #8578DC #B1A9E8

Accessibility & contrast

On white

6.46
#5948CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5948CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948CF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948CF#FFFFFF#000000##FFFFFF
##5948CF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#186A85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5948cf;
/* rgb */ color: rgb(89, 72, 207);
/* oklch */ color: oklch(50.2% 0.199 282.2);
Tailwind
colors: {
  custom: {
    50: '#937cdf',
    500: '#5948cf',
    950: '#000000',
  },
}
SCSS
$custom: #5948cf;
$custom-light: #937cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5948cf",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 247.556,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50156,
    "c": 0.19899,
    "h": 282.2
  },
  "luminance": 0.11264
}

Semantic roles & 50–950 ramp

primary
#5948CF
secondary
#CFD69D
accent
#E246CE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5948CF

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

Preview Lab → · Contrast checker → · Palette generator →

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