#5F7ACE#5F7ACE

#5F7ACE is a mid, vivid blue. Relative luminance 0.208; OKLCH L 59.8% C 0.132 H 268.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5F7ACE
RGBrgb(95, 122, 206)
HSLhsl(225, 53%, 59%)
HSVhsv(225, 54%, 81%)
CMYKcmyk(53.9%, 40.8%, 0%, 19.2%)
CIE-LABlab(52.74, 14.46, -46.54)
CIE-LCHlch(52.74, 48.73, 287.26°)
OKLaboklab(59.77% -0.0029 -0.132)
OKLCHoklch(59.77% 0.132 268.7)
XYZxyz(22.8157, 20.8066, 61.1943)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7ACE #CEB35F
analogous
#5FB2CE #5F7ACE #7C5FCE
triadic
#5F7ACE #CE5F7A #7ACE5F
tetradic
#5F7ACE #CE5FB2 #CEB35F #5FCE7C
square
#5F7ACE #CE5FB2 #CEB35F #5FCE7C
split-complementary
#5F7ACE #CE7C5F #B2CE5F
monochromatic
#2A4189 #3857B8 #5F7ACE #8EA1DC #BDC8EB

Accessibility & contrast

On white

4.07
#5F7ACE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5F7ACE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7ACE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7ACE#FFFFFF#000000##000000
##5F7ACE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5783D1
Deuteranopia (green-blind)
#4A79CC
Tritanopia (blue-blind)
#258C9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f7ace;
/* rgb */ color: rgb(95, 122, 206);
/* oklch */ color: oklch(59.8% 0.132 268.7);
Tailwind
colors: {
  custom: {
    50: '#94a0dd',
    500: '#5f7ace',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ace;
$custom-light: #94a0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ace",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 206
  },
  "hsl": {
    "h": 225.405,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59769,
    "c": 0.13204,
    "h": 268.7
  },
  "luminance": 0.20808
}

Semantic roles & 50–950 ramp

primary
#5F7ACE
secondary
#DAD0AF
accent
#B94BDD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5F7ACE

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

Preview Lab → · Contrast checker → · Palette generator →

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