#5F5FDA#5F5FDA

#5F5FDA is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.3% C 0.184 H 278.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F5FDA
RGBrgb(95, 95, 218)
HSLhsl(240, 62%, 61%)
HSVhsv(240, 56%, 85%)
CMYKcmyk(56.4%, 56.4%, 0%, 14.5%)
CIE-LABlab(46.55, 34.87, -63.29)
CIE-LCHlch(46.55, 72.26, 298.85°)
OKLaboklab(55.32% 0.0273 -0.1815)
OKLCHoklch(55.32% 0.184 278.6)
XYZxyz(21.4624, 15.6778, 68.2112)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FDA #DADA5F
analogous
#5F9DDA #5F5FDA #9D5FDA
triadic
#5F5FDA #DA5F5F #5FDA5F
tetradic
#5F5FDA #DA5F9D #DADA5F #5FDA9D
square
#5F5FDA #DA5F9D #DADA5F #5FDA9D
split-complementary
#5F5FDA #DA9D5F #9DDA5F
monochromatic
#24249B #2F2FCD #5F5FDA #9191E5 #C2C2F1

Accessibility & contrast

On white

5.08
#5F5FDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F5FDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FDA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FDA#FFFFFF#000000##FFFFFF
##5F5FDA1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#197C93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5fda;
/* rgb */ color: rgb(95, 95, 218);
/* oklch */ color: oklch(55.3% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#978ce6',
    500: '#5f5fda',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fda;
$custom-light: #978ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fda",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 240,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.55323,
    "c": 0.18351,
    "h": 278.6
  },
  "luminance": 0.15679
}

Semantic roles & 50–950 ramp

primary
#5F5FDA
secondary
#E1E1B3
accent
#CA1BCA
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5F5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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