#5F7BCD#5F7BCD

#5F7BCD is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.9% C 0.129 H 268.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F7BCD
RGBrgb(95, 123, 205)
HSLhsl(225, 52%, 59%)
HSVhsv(225, 54%, 80%)
CMYKcmyk(53.7%, 40%, 0%, 19.6%)
CIE-LABlab(52.95, 13.53, -45.62)
CIE-LCHlch(52.95, 47.59, 286.52°)
OKLaboklab(59.92% -0.0042 -0.1293)
OKLCHoklch(59.92% 0.129 268.1)
XYZxyz(22.8181, 21.0050, 60.5977)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BCD #CDB15F
analogous
#5FB2CD #5F7BCD #7A5FCD
triadic
#5F7BCD #CD5F7B #7BCD5F
tetradic
#5F7BCD #CD5FB2 #CDB15F #5FCD7A
square
#5F7BCD #CD5FB2 #CDB15F #5FCD7A
split-complementary
#5F7BCD #CD7A5F #B2CD5F
monochromatic
#2A4287 #3959B6 #5F7BCD #8EA1DC #BCC8EA

Accessibility & contrast

On white

4.04
#5F7BCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F7BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BCD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BCD#FFFFFF#000000##000000
##5F7BCD1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5984D0
Deuteranopia (green-blind)
#4D7ACB
Tritanopia (blue-blind)
#268D9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f7bcd;
/* rgb */ color: rgb(95, 123, 205);
/* oklch */ color: oklch(59.9% 0.129 268.1);
Tailwind
colors: {
  custom: {
    50: '#94a0dc',
    500: '#5f7bcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bcd;
$custom-light: #94a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bcd",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 205
  },
  "hsl": {
    "h": 224.727,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59919,
    "c": 0.1294,
    "h": 268.1
  },
  "luminance": 0.21007
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F7BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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