#5F5BCB#5F5BCB

#5F5BCB is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.5% C 0.169 H 280.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5F5BCB
RGBrgb(95, 91, 203)
HSLhsl(242, 52%, 58%)
HSVhsv(242, 55%, 80%)
CMYKcmyk(53.2%, 55.2%, 0%, 20.4%)
CIE-LABlab(44.55, 32.55, -57.93)
CIE-LCHlch(44.55, 66.44, 299.33°)
OKLaboklab(53.51% 0.0312 -0.1657)
OKLCHoklch(53.51% 0.169 280.7)
XYZxyz(19.2366, 14.2257, 58.2205)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BCB #C7CB5B
analogous
#5B8FCB #5F5BCB #975BCB
triadic
#5F5BCB #CB5F5B #5BCB5F
tetradic
#5F5BCB #CB5B8F #C7CB5B #5BCB97
square
#5F5BCB #CB5B8F #C7CB5B #5BCB97
split-complementary
#5F5BCB #CB975B #8FCB5B
monochromatic
#2C2982 #3C38B1 #5F5BCB #8C89DA #BAB8E8

Accessibility & contrast

On white

5.46
#5F5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5F5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BCB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BCB#FFFFFF#000000##FFFFFF
##5F5BCB1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106ECF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#2F758A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f5bcb;
/* rgb */ color: rgb(95, 91, 203);
/* oklch */ color: oklch(53.5% 0.169 280.7);
Tailwind
colors: {
  custom: {
    50: '#9589dc',
    500: '#5f5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bcb;
$custom-light: #9589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bcb",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 242.143,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.16864,
    "h": 280.7
  },
  "luminance": 0.14227
}

Semantic roles & 50–950 ramp

primary
#5F5BCB
secondary
#D6D7AA
accent
#DB4CD6
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

#5F5BCB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva