#5F5FDD#5F5FDD

#5F5FDD is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.5% C 0.187 H 278.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5F5FDD
RGBrgb(95, 95, 221)
HSLhsl(240, 65%, 62%)
HSVhsv(240, 57%, 87%)
CMYKcmyk(57%, 57%, 0%, 13.3%)
CIE-LABlab(46.76, 35.82, -64.65)
CIE-LCHlch(46.76, 73.91, 298.99°)
OKLaboklab(55.55% 0.0273 -0.1855)
OKLCHoklch(55.55% 0.187 278.4)
XYZxyz(21.8585, 15.8363, 70.2975)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FDD #DDDD5F
analogous
#5F9EDD #5F5FDD #9E5FDD
triadic
#5F5FDD #DD5F5F #5FDD5F
tetradic
#5F5FDD #DD5F9E #DDDD5F #5FDD9E
square
#5F5FDD #DD5F9E #DDDD5F #5FDD9E
split-complementary
#5F5FDD #DD9E5F #9EDD5F
monochromatic
#2222A0 #2D2DD2 #5F5FDD #9191E8 #C4C4F2

Accessibility & contrast

On white

5.04
#5F5FDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5F5FDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FDD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FDD#FFFFFF#000000##FFFFFF
##5F5FDD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#117D95
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5fdd;
/* rgb */ color: rgb(95, 95, 221);
/* oklch */ color: oklch(55.5% 0.187 278.4);
Tailwind
colors: {
  custom: {
    50: '#978ce8',
    500: '#5f5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fdd;
$custom-light: #978ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fdd",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 64.948,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55545,
    "c": 0.18749,
    "h": 278.4
  },
  "luminance": 0.15838
}

Semantic roles & 50–950 ramp

primary
#5F5FDD
secondary
#E3E3B5
accent
#CD19CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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