#5F58F5#5F58F5

#5F58F5 is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.3% C 0.227 H 278.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5F58F5
RGBrgb(95, 88, 245)
HSLhsl(243, 89%, 65%)
HSVhsv(243, 64%, 96%)
CMYKcmyk(61.2%, 64.1%, 0%, 3.9%)
CIE-LABlab(46.98, 47.55, -77.82)
CIE-LCHlch(46.98, 91.20, 301.43°)
OKLaboklab(56.27% 0.0323 -0.2242)
OKLCHoklch(56.27% 0.227 278.2)
XYZxyz(24.6852, 16.0030, 88.1566)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58F5 #EEF558
analogous
#58A0F5 #5F58F5 #AD58F5
triadic
#5F58F5 #F55F58 #58F55F
tetradic
#5F58F5 #F558A0 #EEF558 #58F5AD
square
#5F58F5 #F558A0 #EEF558 #58F5AD
split-complementary
#5F58F5 #F5AD58 #A0F558
monochromatic
#140CC7 #281EF2 #5F58F5 #9692F8 #CECBFC

Accessibility & contrast

On white

5.00
#5F58F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5F58F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58F5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58F5#FFFFFF#000000##FFFFFF
##5F58F51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FA
Deuteranopia (green-blind)
#0069F2
Tritanopia (blue-blind)
#00809F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f58f5;
/* rgb */ color: rgb(95, 88, 245);
/* oklch */ color: oklch(56.3% 0.227 278.2);
Tailwind
colors: {
  custom: {
    50: '#9b88fa',
    500: '#5f58f5',
    950: '#000000',
  },
}
SCSS
$custom: #5f58f5;
$custom-light: #9b88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58f5",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 242.675,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56271,
    "c": 0.22654,
    "h": 278.2
  },
  "luminance": 0.16005
}

Semantic roles & 50–950 ramp

primary
#5F58F5
secondary
#ECEFBA
accent
#E500DB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #5F58F5

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

Preview Lab → · Contrast checker → · Palette generator →

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