#5F5CCB#5F5CCB

#5F5CCB is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.7% C 0.167 H 280.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5F5CCB
RGBrgb(95, 92, 203)
HSLhsl(242, 52%, 58%)
HSVhsv(242, 55%, 80%)
CMYKcmyk(53.2%, 54.7%, 0%, 20.4%)
CIE-LABlab(44.80, 31.94, -57.53)
CIE-LCHlch(44.80, 65.80, 299.04°)
OKLaboklab(53.7% 0.0301 -0.1646)
OKLCHoklch(53.7% 0.167 280.4)
XYZxyz(19.3226, 14.3978, 58.2492)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CCB #C8CB5C
analogous
#5C90CB #5F5CCB #975CCB
triadic
#5F5CCB #CB5F5C #5CCB5F
tetradic
#5F5CCB #CB5C90 #C8CB5C #5CCB97
square
#5F5CCB #CB5C90 #C8CB5C #5CCB97
split-complementary
#5F5CCB #CB975C #90CB5C
monochromatic
#2C2A83 #3C39B1 #5F5CCB #8D8ADA #BAB9E9

Accessibility & contrast

On white

5.41
#5F5CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5F5CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CCB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CCB#FFFFFF#000000##FFFFFF
##5F5CCB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#2F758A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f5ccb;
/* rgb */ color: rgb(95, 92, 203);
/* oklch */ color: oklch(53.7% 0.167 280.4);
Tailwind
colors: {
  custom: {
    50: '#958adb',
    500: '#5f5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ccb;
$custom-light: #958adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ccb",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 241.622,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53695,
    "c": 0.1673,
    "h": 280.4
  },
  "luminance": 0.14399
}

Semantic roles & 50–950 ramp

primary
#5F5CCB
secondary
#D6D8AB
accent
#DB4DD7
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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