#5F56CD#5F56CD

#5F56CD is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.8% C 0.178 H 281.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5F56CD
RGBrgb(95, 86, 205)
HSLhsl(245, 54%, 57%)
HSVhsv(245, 58%, 80%)
CMYKcmyk(53.7%, 58%, 0%, 19.6%)
CIE-LABlab(43.50, 36.21, -60.78)
CIE-LCHlch(43.50, 70.75, 300.78°)
OKLaboklab(52.78% 0.0364 -0.1742)
OKLCHoklch(52.78% 0.178 281.8)
XYZxyz(19.0632, 13.4951, 59.3461)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56CD #C4CD56
analogous
#5689CD #5F56CD #9B56CD
triadic
#5F56CD #CD5F56 #56CD5F
tetradic
#5F56CD #CD5689 #C4CD56 #56CD9B
square
#5F56CD #CD5689 #C4CD56 #56CD9B
split-complementary
#5F56CD #CD9B56 #89CD56
monochromatic
#2D2682 #3E34B1 #5F56CD #8C85DB #B8B4E9

Accessibility & contrast

On white

5.68
#5F56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5F56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56CD
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56CD#FFFFFF#000000##FFFFFF
##5F56CD1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#2E7289
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f56cd;
/* rgb */ color: rgb(95, 86, 205);
/* oklch */ color: oklch(52.8% 0.178 281.8);
Tailwind
colors: {
  custom: {
    50: '#9586dd',
    500: '#5f56cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f56cd;
$custom-light: #9586dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56cd",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 244.538,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52776,
    "c": 0.17794,
    "h": 281.8
  },
  "luminance": 0.13496
}

Semantic roles & 50–950 ramp

primary
#5F56CD
secondary
#D4D8A7
accent
#DE4AD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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