#5F5DDE#5F5DDE

#5F5DDE is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.3% C 0.191 H 278.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5F5DDE
RGBrgb(95, 93, 222)
HSLhsl(241, 66%, 62%)
HSVhsv(241, 58%, 87%)
CMYKcmyk(57.2%, 58.1%, 0%, 12.9%)
CIE-LABlab(46.36, 37.35, -65.87)
CIE-LCHlch(46.36, 75.72, 299.55°)
OKLaboklab(55.27% 0.0293 -0.1891)
OKLCHoklch(55.27% 0.191 278.8)
XYZxyz(21.8143, 15.5340, 70.9419)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DDE #DCDE5D
analogous
#5D9CDE #5F5DDE #A05DDE
triadic
#5F5DDE #DE5F5D #5DDE5F
tetradic
#5F5DDE #DE5D9C #DCDE5D #5DDEA0
square
#5F5DDE #DE5D9C #DCDE5D #5DDEA0
split-complementary
#5F5DDE #DEA05D #9CDE5D
monochromatic
#2321A0 #2E2BD3 #5F5DDE #9190E8 #C3C3F3

Accessibility & contrast

On white

5.11
#5F5DDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5F5DDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DDE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DDE#FFFFFF#000000##FFFFFF
##5F5DDE1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E2
Deuteranopia (green-blind)
#0069DB
Tritanopia (blue-blind)
#0F7C94
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5dde;
/* rgb */ color: rgb(95, 93, 222);
/* oklch */ color: oklch(55.3% 0.191 278.8);
Tailwind
colors: {
  custom: {
    50: '#978be9',
    500: '#5f5dde',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dde;
$custom-light: #978be9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dde",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 222
  },
  "hsl": {
    "h": 240.93,
    "s": 66.154,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5527,
    "c": 0.19134,
    "h": 278.8
  },
  "luminance": 0.15536
}

Semantic roles & 50–950 ramp

primary
#5F5DDE
secondary
#E3E3B4
accent
#CE17CB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5DDE

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

Preview Lab → · Contrast checker → · Palette generator →

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