#5F7ACD#5F7ACD

#5F7ACD is a mid, vivid blue. Relative luminance 0.208; OKLCH L 59.7% C 0.131 H 268.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F7ACD
RGBrgb(95, 122, 205)
HSLhsl(225, 52%, 59%)
HSVhsv(225, 54%, 80%)
CMYKcmyk(53.7%, 40.5%, 0%, 19.6%)
CIE-LABlab(52.68, 14.14, -46.05)
CIE-LCHlch(52.68, 48.18, 287.07°)
OKLaboklab(59.71% -0.0031 -0.1306)
OKLCHoklch(59.71% 0.131 268.6)
XYZxyz(22.6947, 20.7581, 60.5566)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7ACD #CDB25F
analogous
#5FB1CD #5F7ACD #7B5FCD
triadic
#5F7ACD #CD5F7A #7ACD5F
tetradic
#5F7ACD #CD5FB1 #CDB25F #5FCD7B
square
#5F7ACD #CD5FB1 #CDB25F #5FCD7B
split-complementary
#5F7ACD #CD7B5F #B1CD5F
monochromatic
#2A4187 #3958B6 #5F7ACD #8EA1DC #BCC8EA

Accessibility & contrast

On white

4.08
#5F7ACD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F7ACD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7ACD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7ACD#FFFFFF#000000##000000
##5F7ACD1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5883D0
Deuteranopia (green-blind)
#4B79CB
Tritanopia (blue-blind)
#268C99
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f7acd;
/* rgb */ color: rgb(95, 122, 205);
/* oklch */ color: oklch(59.7% 0.131 268.6);
Tailwind
colors: {
  custom: {
    50: '#94a0dd',
    500: '#5f7acd',
    950: '#000000',
  },
}
SCSS
$custom: #5f7acd;
$custom-light: #94a0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7acd",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 205
  },
  "hsl": {
    "h": 225.273,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5971,
    "c": 0.13064,
    "h": 268.6
  },
  "luminance": 0.2076
}

Semantic roles & 50–950 ramp

primary
#5F7ACD
secondary
#DACFAE
accent
#B94CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F7ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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