#5F56CB#5F56CB

#5F56CB is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.6% C 0.175 H 282.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5F56CB
RGBrgb(95, 86, 203)
HSLhsl(245, 53%, 57%)
HSVhsv(245, 58%, 80%)
CMYKcmyk(53.2%, 57.6%, 0%, 20.4%)
CIE-LABlab(43.36, 35.59, -59.86)
CIE-LCHlch(43.36, 69.64, 300.73°)
OKLaboklab(52.63% 0.0365 -0.1714)
OKLCHoklch(52.63% 0.175 282)
XYZxyz(18.8233, 13.3992, 58.0828)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56CB #C2CB56
analogous
#5688CB #5F56CB #9A56CB
triadic
#5F56CB #CB5F56 #56CB5F
tetradic
#5F56CB #CB5688 #C2CB56 #56CB9A
square
#5F56CB #CB5688 #C2CB56 #56CB9A
split-complementary
#5F56CB #CB9A56 #88CB56
monochromatic
#2E277F #3F36AE #5F56CB #8B85D9 #B8B4E8

Accessibility & contrast

On white

5.71
#5F56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5F56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56CB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56CB#FFFFFF#000000##FFFFFF
##5F56CB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#307188
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f56cb;
/* rgb */ color: rgb(95, 86, 203);
/* oklch */ color: oklch(52.6% 0.175 282.0);
Tailwind
colors: {
  custom: {
    50: '#9586dc',
    500: '#5f56cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f56cb;
$custom-light: #9586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56cb",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 244.615,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52627,
    "c": 0.17528,
    "h": 282
  },
  "luminance": 0.134
}

Semantic roles & 50–950 ramp

primary
#5F56CB
secondary
#D3D6A6
accent
#DC4BD1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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