#51678D#51678D

#51678D is a mid, moderate blue. Relative luminance 0.134; OKLCH L 51.2% C 0.066 H 261.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#51678D
RGBrgb(81, 103, 141)
HSLhsl(218, 27%, 44%)
HSVhsv(218, 43%, 55%)
CMYKcmyk(42.6%, 27%, 0%, 44.7%)
CIE-LABlab(43.32, 2.26, -23.51)
CIE-LCHlch(43.32, 23.62, 275.49°)
OKLaboklab(51.2% -0.0103 -0.0655)
OKLCHoklch(51.2% 0.066 261.1)
XYZxyz(13.0498, 13.3722, 27.0876)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51678D #8D7751
analogous
#51858D #51678D #59518D
triadic
#51678D #8D5167 #678D51
tetradic
#51678D #8D5185 #8D7751 #518D59
square
#51678D #8D5185 #8D7751 #518D59
split-complementary
#51678D #8D5951 #858D51
monochromatic
#242E3F #3B4B66 #51678D #6F85AC #96A6C3

Accessibility & contrast

On white

5.71
#51678D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#51678D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51678D
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51678D#FFFFFF#000000##FFFFFF
##51678D1.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59698F
Deuteranopia (green-blind)
#53648C
Tritanopia (blue-blind)
#3C6F74
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #51678d;
/* rgb */ color: rgb(81, 103, 141);
/* oklch */ color: oklch(51.2% 0.066 261.1);
Tailwind
colors: {
  custom: {
    50: '#8492ae',
    500: '#51678d',
    950: '#000000',
  },
}
SCSS
$custom: #51678d;
$custom-light: #8492ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51678d",
  "rgb": {
    "r": 81,
    "g": 103,
    "b": 141
  },
  "hsl": {
    "h": 218,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51195,
    "c": 0.0663,
    "h": 261.1
  },
  "luminance": 0.13373
}

Semantic roles & 50–950 ramp

primary
#51678D
secondary
#AFA28A
accent
#A164C3
background
#F8F8FA
surface
#EFF0F4
border
#CACBCE
text
#0B0D10
muted
#7C7D7F

Preview Lab

Preview with #51678D

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

Preview Lab → · Contrast checker → · Palette generator →

#51678D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva