#5F5CDB#5F5CDB

#5F5CDB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.9% C 0.189 H 279.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F5CDB
RGBrgb(95, 92, 219)
HSLhsl(241, 64%, 61%)
HSVhsv(241, 58%, 86%)
CMYKcmyk(56.6%, 58%, 0%, 14.1%)
CIE-LABlab(45.91, 37.00, -64.90)
CIE-LCHlch(45.91, 74.70, 299.69°)
OKLaboklab(54.87% 0.0303 -0.1862)
OKLCHoklch(54.87% 0.189 279.2)
XYZxyz(21.3286, 15.2002, 68.8141)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CDB #D8DB5C
analogous
#5C98DB #5F5CDB #9E5CDB
triadic
#5F5CDB #DB5F5C #5CDB5F
tetradic
#5F5CDB #DB5C98 #D8DB5C #5CDB9E
square
#5F5CDB #DB5C98 #D8DB5C #5CDB9E
split-complementary
#5F5CDB #DB9E5C #98DB5C
monochromatic
#25229A #312DCD #5F5CDB #908EE6 #C1C0F1

Accessibility & contrast

On white

5.20
#5F5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5F5CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CDB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CDB#FFFFFF#000000##FFFFFF
##5F5CDB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#177A93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f5cdb;
/* rgb */ color: rgb(95, 92, 219);
/* oklch */ color: oklch(54.9% 0.189 279.2);
Tailwind
colors: {
  custom: {
    50: '#978ae7',
    500: '#5f5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cdb;
$custom-light: #978ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cdb",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 241.417,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5487,
    "c": 0.18867,
    "h": 279.2
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#5F5CDB
secondary
#E0E1B1
accent
#CC1AC7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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