#5F7EB3#5F7EB3

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

Color values

HEX#5F7EB3
RGBrgb(95, 126, 179)
HSLhsl(218, 36%, 54%)
HSVhsv(218, 47%, 70%)
CMYKcmyk(46.9%, 29.6%, 0%, 29.8%)
CIE-LABlab(52.52, 3.61, -31.44)
CIE-LCHlch(52.52, 31.65, 276.55°)
OKLaboklab(59.16% -0.0143 -0.0881)
OKLCHoklch(59.16% 0.089 260.8)
XYZxyz(20.3142, 20.6080, 45.5464)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EB3 #B3945F
analogous
#5FA8B3 #5F7EB3 #6A5FB3
triadic
#5F7EB3 #B35F7E #7EB35F
tetradic
#5F7EB3 #B35FA8 #B3945F #5FB36A
square
#5F7EB3 #B35FA8 #B3945F #5FB36A
split-complementary
#5F7EB3 #B36A5F #A8B35F
monochromatic
#314567 #456090 #5F7EB3 #889FC7 #B2C1DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7EB3#FFFFFF#000000##000000
##5F7EB31.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)
#6A82B5
Deuteranopia (green-blind)
#617AB2
Tritanopia (blue-blind)
#3D8991
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f7eb3;
/* rgb */ color: rgb(95, 126, 179);
/* oklch */ color: oklch(59.2% 0.089 260.8);
Tailwind
colors: {
  custom: {
    50: '#91a3ca',
    500: '#5f7eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f7eb3;
$custom-light: #91a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7eb3",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 179
  },
  "hsl": {
    "h": 217.857,
    "s": 35.593,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59164,
    "c": 0.08921,
    "h": 260.8
  },
  "luminance": 0.20609
}

Semantic roles & 50–950 ramp

primary
#5F7EB3
secondary
#C9BCA5
accent
#A25CCC
background
#F9FAFC
surface
#F1F3F8
border
#CBCDD1
text
#0D0F13
muted
#7E7F82

Preview Lab

Preview with #5F7EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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