#5F5CBB#5F5CBB

#5F5CBB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.145 H 281.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5F5CBB
RGBrgb(95, 92, 187)
HSLhsl(242, 41%, 55%)
HSVhsv(242, 51%, 73%)
CMYKcmyk(49.2%, 50.8%, 0%, 26.7%)
CIE-LABlab(43.76, 26.93, -49.94)
CIE-LCHlch(43.76, 56.73, 298.33°)
OKLaboklab(52.59% 0.0292 -0.1422)
OKLCHoklch(52.59% 0.145 281.6)
XYZxyz(17.5134, 13.6741, 48.7206)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CBB #B8BB5C
analogous
#5C88BB #5F5CBB #8F5CBB
triadic
#5F5CBB #BB5F5C #5CBB5F
tetradic
#5F5CBB #BB5C88 #B8BB5C #5CBB8F
square
#5F5CBB #BB5C88 #B8BB5C #5CBB8F
split-complementary
#5F5CBB #BB8F5C #88BB5C
monochromatic
#302E6F #43409A #5F5CBB #8987CD #B4B2DF

Accessibility & contrast

On white

5.62
#5F5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5F5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CBB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CBB#FFFFFF#000000##FFFFFF
##5F5CBB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BBE
Deuteranopia (green-blind)
#2864B9
Tritanopia (blue-blind)
#3D7183
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f5cbb;
/* rgb */ color: rgb(95, 92, 187);
/* oklch */ color: oklch(52.6% 0.145 281.6);
Tailwind
colors: {
  custom: {
    50: '#928ad0',
    500: '#5f5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cbb;
$custom-light: #928ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cbb",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 241.895,
    "s": 41.126,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.14518,
    "h": 281.6
  },
  "luminance": 0.13675
}

Semantic roles & 50–950 ramp

primary
#5F5CBB
secondary
#CCCDA5
accent
#D157CD
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5F5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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