#5F58CB#5F58CB

#5F58CB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.0% C 0.173 H 281.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5F58CB
RGBrgb(95, 88, 203)
HSLhsl(244, 53%, 57%)
HSVhsv(244, 57%, 80%)
CMYKcmyk(53.2%, 56.7%, 0%, 20.4%)
CIE-LABlab(43.83, 34.38, -59.09)
CIE-LCHlch(43.83, 68.36, 300.19°)
OKLaboklab(52.98% 0.0344 -0.1692)
OKLCHoklch(52.98% 0.173 281.5)
XYZxyz(18.9852, 13.7230, 58.1367)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58CB #C4CB58
analogous
#588BCB #5F58CB #9958CB
triadic
#5F58CB #CB5F58 #58CB5F
tetradic
#5F58CB #CB588B #C4CB58 #58CB99
square
#5F58CB #CB588B #C4CB58 #58CB99
split-complementary
#5F58CB #CB9958 #8BCB58
monochromatic
#2D2881 #3E37AF #5F58CB #8C87DA #B8B5E8

Accessibility & contrast

On white

5.61
#5F58CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5F58CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58CB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58CB#FFFFFF#000000##FFFFFF
##5F58CB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#307389
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f58cb;
/* rgb */ color: rgb(95, 88, 203);
/* oklch */ color: oklch(53.0% 0.173 281.5);
Tailwind
colors: {
  custom: {
    50: '#9587dc',
    500: '#5f58cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f58cb;
$custom-light: #9587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58cb",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 243.652,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52978,
    "c": 0.17263,
    "h": 281.5
  },
  "luminance": 0.13724
}

Semantic roles & 50–950 ramp

primary
#5F58CB
secondary
#D4D7A8
accent
#DC4CD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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