#5F7FAC#5F7FAC

#5F7FAC is a mid, moderate blue. Relative luminance 0.206; OKLCH L 59.0% C 0.079 H 257.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F7FAC
RGBrgb(95, 127, 172)
HSLhsl(215, 32%, 52%)
HSVhsv(215, 45%, 67%)
CMYKcmyk(44.8%, 26.2%, 0%, 32.5%)
CIE-LABlab(52.50, 0.92, -27.44)
CIE-LCHlch(52.50, 27.45, 271.92°)
OKLaboklab(59.05% -0.0177 -0.0765)
OKLCHoklch(59.05% 0.079 257)
XYZxyz(19.7526, 20.5890, 41.9550)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FAC #AC8C5F
analogous
#5FA5AC #5F7FAC #665FAC
triadic
#5F7FAC #AC5F7F #7FAC5F
tetradic
#5F7FAC #AC5FA5 #AC8C5F #5FAC66
square
#5F7FAC #AC5FA5 #AC8C5F #5FAC66
split-complementary
#5F7FAC #AC665F #A5AC5F
monochromatic
#31445F #466188 #5F7FAC #879FC1 #B0BFD6

Accessibility & contrast

On white

4.10
#5F7FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5F7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FAC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FAC#FFFFFF#000000##000000
##5F7FAC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E81AE
Deuteranopia (green-blind)
#657AAB
Tritanopia (blue-blind)
#41898F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f7fac;
/* rgb */ color: rgb(95, 127, 172);
/* oklch */ color: oklch(59.0% 0.079 257.0);
Tailwind
colors: {
  custom: {
    50: '#90a4c5',
    500: '#5f7fac',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fac;
$custom-light: #90a4c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fac",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 215.065,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59047,
    "c": 0.07855,
    "h": 257
  },
  "luminance": 0.2059
}

Semantic roles & 50–950 ramp

primary
#5F7FAC
secondary
#C4B6A3
accent
#9D60C8
background
#F9FAFC
surface
#F1F3F8
border
#CBCDD1
text
#0D0F12
muted
#7E7F81

Preview Lab

Preview with #5F7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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