#5F7DCD#5F7DCD

#5F7DCD is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.3% C 0.127 H 267.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5F7DCD
RGBrgb(95, 125, 205)
HSLhsl(224, 52%, 59%)
HSVhsv(224, 54%, 80%)
CMYKcmyk(53.7%, 39%, 0%, 19.6%)
CIE-LABlab(53.50, 12.32, -44.76)
CIE-LCHlch(53.50, 46.43, 285.39°)
OKLaboklab(60.34% -0.0065 -0.1268)
OKLCHoklch(60.34% 0.127 267.1)
XYZxyz(23.0687, 21.5062, 60.6813)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DCD #CDAF5F
analogous
#5FB4CD #5F7DCD #785FCD
triadic
#5F7DCD #CD5F7D #7DCD5F
tetradic
#5F7DCD #CD5FB4 #CDAF5F #5FCD78
square
#5F7DCD #CD5FB4 #CDAF5F #5FCD78
split-complementary
#5F7DCD #CD785F #B4CD5F
monochromatic
#2A4487 #395BB6 #5F7DCD #8EA3DC #BCC9EA

Accessibility & contrast

On white

3.96
#5F7DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#5F7DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DCD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DCD#FFFFFF#000000##000000
##5F7DCD1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C85D0
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#258E9B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f7dcd;
/* rgb */ color: rgb(95, 125, 205);
/* oklch */ color: oklch(60.3% 0.127 267.1);
Tailwind
colors: {
  custom: {
    50: '#93a2dc',
    500: '#5f7dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f7dcd;
$custom-light: #93a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7dcd",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 205
  },
  "hsl": {
    "h": 223.636,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60339,
    "c": 0.12696,
    "h": 267.1
  },
  "luminance": 0.21508
}

Semantic roles & 50–950 ramp

primary
#5F7DCD
secondary
#DACEAE
accent
#B54CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0F15
muted
#7E7E83

Preview Lab

Preview with #5F7DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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