#5F58DF#5F58DF

#5F58DF is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.5% C 0.199 H 279.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F58DF
RGBrgb(95, 88, 223)
HSLhsl(243, 68%, 61%)
HSVhsv(243, 61%, 87%)
CMYKcmyk(57.4%, 60.5%, 0%, 12.5%)
CIE-LABlab(45.27, 40.65, -68.20)
CIE-LCHlch(45.27, 79.40, 300.80°)
OKLaboklab(54.5% 0.0339 -0.196)
OKLCHoklch(54.5% 0.199 279.8)
XYZxyz(21.5241, 14.7386, 71.5083)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58DF #D8DF58
analogous
#5894DF #5F58DF #A258DF
triadic
#5F58DF #DF5F58 #58DF5F
tetradic
#5F58DF #DF5894 #D8DF58 #58DFA2
square
#5F58DF #DF5894 #D8DF58 #58DFA2
split-complementary
#5F58DF #DFA258 #94DF58
monochromatic
#251E9E #3128D2 #5F58DF #908BE9 #C1BFF3

Accessibility & contrast

On white

5.32
#5F58DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5F58DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58DF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58DF#FFFFFF#000000##FFFFFF
##5F58DF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0066DC
Tritanopia (blue-blind)
#0E7993
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f58df;
/* rgb */ color: rgb(95, 88, 223);
/* oklch */ color: oklch(54.5% 0.199 279.8);
Tailwind
colors: {
  custom: {
    50: '#9887ea',
    500: '#5f58df',
    950: '#000000',
  },
}
SCSS
$custom: #5f58df;
$custom-light: #9887ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58df",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 243.111,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54495,
    "c": 0.19887,
    "h": 279.8
  },
  "luminance": 0.1474
}

Semantic roles & 50–950 ramp

primary
#5F58DF
secondary
#E0E3B0
accent
#D016C6
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F58DF

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

Preview Lab → · Contrast checker → · Palette generator →

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