#5F5CC0#5F5CC0

#5F5CC0 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.9% C 0.152 H 281.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5F5CC0
RGBrgb(95, 92, 192)
HSLhsl(242, 44%, 56%)
HSVhsv(242, 52%, 75%)
CMYKcmyk(50.5%, 52.1%, 0%, 24.7%)
CIE-LABlab(44.08, 28.48, -52.34)
CIE-LCHlch(44.08, 59.58, 298.56°)
OKLaboklab(52.93% 0.0296 -0.1493)
OKLCHoklch(52.93% 0.152 281.2)
XYZxyz(18.0580, 13.8920, 51.5888)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CC0 #BDC05C
analogous
#5C8BC0 #5F5CC0 #915CC0
triadic
#5F5CC0 #C05F5C #5CC05F
tetradic
#5F5CC0 #C05C8B #BDC05C #5CC091
square
#5F5CC0 #C05C8B #BDC05C #5CC091
split-complementary
#5F5CC0 #C0915C #8BC05C
monochromatic
#2F2D75 #413EA1 #5F5CC0 #8A88D1 #B6B4E2

Accessibility & contrast

On white

5.56
#5F5CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5F5CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CC0
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CC0#FFFFFF#000000##FFFFFF
##5F5CC01.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296CC4
Deuteranopia (green-blind)
#1F65BE
Tritanopia (blue-blind)
#397285
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f5cc0;
/* rgb */ color: rgb(95, 92, 192);
/* oklch */ color: oklch(52.9% 0.152 281.2);
Tailwind
colors: {
  custom: {
    50: '#938ad4',
    500: '#5f5cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cc0;
$custom-light: #938ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cc0",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 192
  },
  "hsl": {
    "h": 241.8,
    "s": 44.248,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.15218,
    "h": 281.2
  },
  "luminance": 0.13893
}

Semantic roles & 50–950 ramp

primary
#5F5CC0
secondary
#CFD1A7
accent
#D454D0
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F5CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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