#5F58DB#5F58DB

#5F58DB is a mid, vivid blue. Relative luminance 0.145; OKLCH L 54.2% C 0.194 H 280.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F58DB
RGBrgb(95, 88, 219)
HSLhsl(243, 65%, 60%)
HSVhsv(243, 60%, 86%)
CMYKcmyk(56.6%, 59.8%, 0%, 14.1%)
CIE-LABlab(44.98, 39.40, -66.41)
CIE-LCHlch(44.98, 77.21, 300.68°)
OKLaboklab(54.18% 0.0341 -0.1907)
OKLCHoklch(54.18% 0.194 280.1)
XYZxyz(20.9912, 14.5254, 68.7017)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58DB #D4DB58
analogous
#5893DB #5F58DB #A058DB
triadic
#5F58DB #DB5F58 #58DB5F
tetradic
#5F58DB #DB5893 #D4DB58 #58DBA0
square
#5F58DB #DB5893 #D4DB58 #58DBA0
split-complementary
#5F58DB #DBA058 #93DB58
monochromatic
#272198 #342CCA #5F58DB #8F8AE6 #BFBDF1

Accessibility & contrast

On white

5.38
#5F58DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5F58DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58DB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58DB#FFFFFF#000000##FFFFFF
##5F58DB1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#0065D8
Tritanopia (blue-blind)
#197891
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f58db;
/* rgb */ color: rgb(95, 88, 219);
/* oklch */ color: oklch(54.2% 0.194 280.1);
Tailwind
colors: {
  custom: {
    50: '#9787e7',
    500: '#5f58db',
    950: '#000000',
  },
}
SCSS
$custom: #5f58db;
$custom-light: #9787e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58db",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 243.206,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.19371,
    "h": 280.1
  },
  "luminance": 0.14527
}

Semantic roles & 50–950 ramp

primary
#5F58DB
secondary
#DEE1AE
accent
#CC19C3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F58DB

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

Preview Lab → · Contrast checker → · Palette generator →

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