#5F5DDF#5F5DDF

#5F5DDF is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.3% C 0.193 H 278.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F5DDF
RGBrgb(95, 93, 223)
HSLhsl(241, 67%, 62%)
HSVhsv(241, 58%, 87%)
CMYKcmyk(57.4%, 58.3%, 0%, 12.5%)
CIE-LABlab(46.43, 37.67, -66.32)
CIE-LCHlch(46.43, 76.27, 299.59°)
OKLaboklab(55.35% 0.0292 -0.1904)
OKLCHoklch(55.35% 0.193 278.7)
XYZxyz(21.9487, 15.5878, 71.6499)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DDF #DDDF5D
analogous
#5D9CDF #5F5DDF #A05DDF
triadic
#5F5DDF #DF5F5D #5DDF5F
tetradic
#5F5DDF #DF5D9C #DDDF5D #5DDFA0
square
#5F5DDF #DF5D9C #DDDF5D #5DDFA0
split-complementary
#5F5DDF #DFA05D #9CDF5D
monochromatic
#2220A2 #2D2AD5 #5F5DDF #9190E9 #C4C3F3

Accessibility & contrast

On white

5.10
#5F5DDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5F5DDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DDF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DDF#FFFFFF#000000##FFFFFF
##5F5DDF1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#0069DC
Tritanopia (blue-blind)
#0B7C95
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5ddf;
/* rgb */ color: rgb(95, 93, 223);
/* oklch */ color: oklch(55.3% 0.193 278.7);
Tailwind
colors: {
  custom: {
    50: '#978bea',
    500: '#5f5ddf',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ddf;
$custom-light: #978bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ddf",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 223
  },
  "hsl": {
    "h": 240.923,
    "s": 67.01,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55346,
    "c": 0.19265,
    "h": 278.7
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#5F5DDF
secondary
#E3E4B4
accent
#CF17CC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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