#5F5FCF#5F5FCF

#5F5FCF is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.5% C 0.169 H 279.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F5FCF
RGBrgb(95, 95, 207)
HSLhsl(240, 54%, 59%)
HSVhsv(240, 54%, 81%)
CMYKcmyk(54.1%, 54.1%, 0%, 18.8%)
CIE-LABlab(45.80, 31.37, -58.22)
CIE-LCHlch(45.80, 66.13, 298.32°)
OKLaboklab(54.53% 0.0271 -0.1665)
OKLCHoklch(54.53% 0.169 279.2)
XYZxyz(20.0705, 15.1210, 60.8804)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FCF #CFCF5F
analogous
#5F97CF #5F5FCF #975FCF
triadic
#5F5FCF #CF5F5F #5FCF5F
tetradic
#5F5FCF #CF5F97 #CFCF5F #5FCF97
square
#5F5FCF #CF5F97 #CFCF5F #5FCF97
split-complementary
#5F5FCF #CF975F #97CF5F
monochromatic
#29298A #3838B9 #5F5FCF #8E8EDD #BDBDEB

Accessibility & contrast

On white

5.22
#5F5FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5F5FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FCF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FCF#FFFFFF#000000##FFFFFF
##5F5FCF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A71D3
Deuteranopia (green-blind)
#0068CD
Tritanopia (blue-blind)
#2A798E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5fcf;
/* rgb */ color: rgb(95, 95, 207);
/* oklch */ color: oklch(54.5% 0.169 279.2);
Tailwind
colors: {
  custom: {
    50: '#958cde',
    500: '#5f5fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fcf;
$custom-light: #958cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fcf",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 240,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.54527,
    "c": 0.16873,
    "h": 279.2
  },
  "luminance": 0.15122
}

Semantic roles & 50–950 ramp

primary
#5F5FCF
secondary
#DBDBAF
accent
#DD4BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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