#5F5CDA#5F5CDA

#5F5CDA is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.8% C 0.187 H 279.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5F5CDA
RGBrgb(95, 92, 218)
HSLhsl(241, 63%, 61%)
HSVhsv(241, 58%, 85%)
CMYKcmyk(56.4%, 57.8%, 0%, 14.5%)
CIE-LABlab(45.84, 36.68, -64.44)
CIE-LCHlch(45.84, 74.15, 299.65°)
OKLaboklab(54.8% 0.0303 -0.1849)
OKLCHoklch(54.8% 0.187 279.3)
XYZxyz(21.1974, 15.1477, 68.1229)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CDA #D7DA5C
analogous
#5C98DA #5F5CDA #9E5CDA
triadic
#5F5CDA #DA5F5C #5CDA5F
tetradic
#5F5CDA #DA5C98 #D7DA5C #5CDA9E
square
#5F5CDA #DA5C98 #D7DA5C #5CDA9E
split-complementary
#5F5CDA #DA9E5C #98DA5C
monochromatic
#262399 #322ECB #5F5CDA #908EE5 #C1C0F1

Accessibility & contrast

On white

5.21
#5F5CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5F5CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CDA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CDA#FFFFFF#000000##FFFFFF
##5F5CDA1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DE
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#1A7A92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f5cda;
/* rgb */ color: rgb(95, 92, 218);
/* oklch */ color: oklch(54.8% 0.187 279.3);
Tailwind
colors: {
  custom: {
    50: '#978ae6',
    500: '#5f5cda',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cda;
$custom-light: #978ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cda",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 241.429,
    "s": 63,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54795,
    "c": 0.18735,
    "h": 279.3
  },
  "luminance": 0.15149
}

Semantic roles & 50–950 ramp

primary
#5F5CDA
secondary
#E0E1B1
accent
#CB1BC7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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