#5F58CC#5F58CC

#5F58CC is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.1% C 0.174 H 281.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5F58CC
RGBrgb(95, 88, 204)
HSLhsl(244, 53%, 57%)
HSVhsv(244, 57%, 80%)
CMYKcmyk(53.4%, 56.9%, 0%, 20%)
CIE-LABlab(43.90, 34.69, -59.56)
CIE-LCHlch(43.90, 68.92, 300.22°)
OKLaboklab(53.05% 0.0344 -0.1705)
OKLCHoklch(53.05% 0.174 281.4)
XYZxyz(19.1048, 13.7708, 58.7664)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58CC #C5CC58
analogous
#588BCC #5F58CC #9958CC
triadic
#5F58CC #CC5F58 #58CC5F
tetradic
#5F58CC #CC588B #C5CC58 #58CC99
square
#5F58CC #CC588B #C5CC58 #58CC99
split-complementary
#5F58CC #CC9958 #8BCC58
monochromatic
#2D2882 #3D36B1 #5F58CC #8C87DA #B9B6E9

Accessibility & contrast

On white

5.59
#5F58CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5F58CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58CC
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58CC#FFFFFF#000000##FFFFFF
##5F58CC1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#2F7389
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f58cc;
/* rgb */ color: rgb(95, 88, 204);
/* oklch */ color: oklch(53.1% 0.174 281.4);
Tailwind
colors: {
  custom: {
    50: '#9587dc',
    500: '#5f58cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f58cc;
$custom-light: #9587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58cc",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 243.621,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53051,
    "c": 0.17397,
    "h": 281.4
  },
  "luminance": 0.13772
}

Semantic roles & 50–950 ramp

primary
#5F58CC
secondary
#D5D7A8
accent
#DD4BD4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F58CC

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

Preview Lab → · Contrast checker → · Palette generator →

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