#5F7AAA#5F7AAA

#5F7AAA is a mid, moderate blue. Relative luminance 0.193; OKLCH L 57.8% C 0.081 H 261.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5F7AAA
RGBrgb(95, 122, 170)
HSLhsl(218, 31%, 52%)
HSVhsv(218, 44%, 67%)
CMYKcmyk(44.1%, 28.2%, 0%, 33.3%)
CIE-LABlab(50.98, 3.29, -28.63)
CIE-LCHlch(50.98, 28.82, 276.55°)
OKLaboklab(57.83% -0.0119 -0.08)
OKLCHoklch(57.83% 0.081 261.6)
XYZxyz(18.9322, 19.2531, 40.7411)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AAA #AA8F5F
analogous
#5FA0AA #5F7AAA #6A5FAA
triadic
#5F7AAA #AA5F7A #7AAA5F
tetradic
#5F7AAA #AA5FA0 #AA8F5F #5FAA6A
square
#5F7AAA #AA5FA0 #AA8F5F #5FAA6A
split-complementary
#5F7AAA #AA6A5F #A0AA5F
monochromatic
#31415D #475D85 #5F7AAA #879BBF #AFBCD4

Accessibility & contrast

On white

4.33
#5F7AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5F7AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AAA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AAA#FFFFFF#000000##000000
##5F7AAA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#697DAC
Deuteranopia (green-blind)
#6076A9
Tritanopia (blue-blind)
#43848B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f7aaa;
/* rgb */ color: rgb(95, 122, 170);
/* oklch */ color: oklch(57.8% 0.081 261.6);
Tailwind
colors: {
  custom: {
    50: '#90a0c3',
    500: '#5f7aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f7aaa;
$custom-light: #90a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7aaa",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 218.4,
    "s": 30.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57834,
    "c": 0.08085,
    "h": 261.6
  },
  "luminance": 0.19254
}

Semantic roles & 50–950 ramp

primary
#5F7AAA
secondary
#C3B7A2
accent
#A261C7
background
#F9F9FC
surface
#F1F2F8
border
#CBCCD1
text
#0D0E12
muted
#7E7E81

Preview Lab

Preview with #5F7AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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