#5954BF#5954BF

#5954BF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.9% C 0.163 H 281.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5954BF
RGBrgb(89, 84, 191)
HSLhsl(243, 46%, 54%)
HSVhsv(243, 56%, 75%)
CMYKcmyk(53.4%, 56%, 0%, 25.1%)
CIE-LABlab(41.57, 31.84, -55.82)
CIE-LCHlch(41.57, 64.26, 299.70°)
OKLaboklab(50.92% 0.0311 -0.1597)
OKLCHoklch(50.92% 0.163 281)
XYZxyz(16.6912, 12.2251, 50.7603)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954BF #BABF54
analogous
#5485BF #5954BF #8F54BF
triadic
#5954BF #BF5954 #54BF59
tetradic
#5954BF #BF5485 #BABF54 #54BF8F
square
#5954BF #BF5485 #BABF54 #54BF8F
split-complementary
#5954BF #BF8F54 #85BF54
monochromatic
#2D2A6F #3F3A9C #5954BF #8481D0 #AFADE0

Accessibility & contrast

On white

6.10
#5954BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5954BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954BF
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954BF#FFFFFF#000000##FFFFFF
##5954BF1.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0666C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#2C6D81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5954bf;
/* rgb */ color: rgb(89, 84, 191);
/* oklch */ color: oklch(50.9% 0.163 281.0);
Tailwind
colors: {
  custom: {
    50: '#9084d3',
    500: '#5954bf',
    950: '#000000',
  },
}
SCSS
$custom: #5954bf;
$custom-light: #9084d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5954bf",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 242.804,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50919,
    "c": 0.16274,
    "h": 281
  },
  "luminance": 0.12226
}

Semantic roles & 50–950 ramp

primary
#5954BF
secondary
#CCCEA1
accent
#D553CF
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5954BF

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

Preview Lab → · Contrast checker → · Palette generator →

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