#5F6BC5#5F6BC5

#5F6BC5 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 56.2% C 0.139 H 275.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F6BC5
RGBrgb(95, 107, 197)
HSLhsl(233, 47%, 57%)
HSVhsv(233, 52%, 77%)
CMYKcmyk(51.8%, 45.7%, 0%, 22.7%)
CIE-LABlab(48.23, 20.79, -48.57)
CIE-LCHlch(48.23, 52.83, 293.17°)
OKLaboklab(56.16% 0.0128 -0.1381)
OKLCHoklch(56.16% 0.139 275.3)
XYZxyz(20.0519, 16.9782, 55.0330)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6BC5 #C5B95F
analogous
#5F9EC5 #5F6BC5 #865FC5
triadic
#5F6BC5 #C55F6B #6BC55F
tetradic
#5F6BC5 #C55F9E #C5B95F #5FC586
square
#5F6BC5 #C55F9E #C5B95F #5FC586
split-complementary
#5F6BC5 #C5865F #9EC55F
monochromatic
#2D367C #3D4AA9 #5F6BC5 #8C95D5 #B9BEE6

Accessibility & contrast

On white

4.78
#5F6BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5F6BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6BC5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6BC5#FFFFFF#000000##FFFFFF
##5F6BC51.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4477C8
Deuteranopia (green-blind)
#396EC3
Tritanopia (blue-blind)
#337E8E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f6bc5;
/* rgb */ color: rgb(95, 107, 197);
/* oklch */ color: oklch(56.2% 0.139 275.3);
Tailwind
colors: {
  custom: {
    50: '#9395d7',
    500: '#5f6bc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f6bc5;
$custom-light: #9395d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6bc5",
  "rgb": {
    "r": 95,
    "g": 107,
    "b": 197
  },
  "hsl": {
    "h": 232.941,
    "s": 46.789,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56161,
    "c": 0.13868,
    "h": 275.3
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#5F6BC5
secondary
#D5D0AB
accent
#C751D6
background
#F9F9FD
surface
#F2F1FA
border
#CCCBD3
text
#0E0D14
muted
#7E7E83

Preview Lab

Preview with #5F6BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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