#5181A2#5181A2

#5181A2 is a mid, moderate cyan. Relative luminance 0.201; OKLCH L 58.2% C 0.073 H 239.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5181A2
RGBrgb(81, 129, 162)
HSLhsl(204, 33%, 48%)
HSVhsv(204, 50%, 64%)
CMYKcmyk(50%, 20.4%, 0%, 36.5%)
CIE-LABlab(51.90, -6.81, -22.63)
CIE-LCHlch(51.90, 23.64, 253.24°)
OKLaboklab(58.24% -0.0367 -0.063)
OKLCHoklch(58.24% 0.073 239.7)
XYZxyz(17.7629, 20.0571, 37.1108)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181A2 #A27251
analogous
#51A29A #5181A2 #5159A2
triadic
#5181A2 #A25181 #81A251
tetradic
#5181A2 #9A51A2 #A27251 #59A251
square
#5181A2 #9A51A2 #A27251 #59A251
split-complementary
#5181A2 #A25159 #A29A51
monochromatic
#284050 #3D6179 #5181A2 #769EBA #9FBBCF

Accessibility & contrast

On white

4.19
#5181A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5181A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181A2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181A2#FFFFFF#000000##000000
##5181A21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7281A4
Deuteranopia (green-blind)
#6778A1
Tritanopia (blue-blind)
#29898C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5181a2;
/* rgb */ color: rgb(81, 129, 162);
/* oklch */ color: oklch(58.2% 0.073 239.7);
Tailwind
colors: {
  custom: {
    50: '#87a5bd',
    500: '#5181a2',
    950: '#000000',
  },
}
SCSS
$custom: #5181a2;
$custom-light: #87a5bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5181a2",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 162
  },
  "hsl": {
    "h": 204.444,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58238,
    "c": 0.0729,
    "h": 239.7
  },
  "luminance": 0.20058
}

Semantic roles & 50–950 ramp

primary
#5181A2
secondary
#BCA493
accent
#8A5EC9
background
#F8FAFB
surface
#F0F4F6
border
#CBCED0
text
#0C0F12
muted
#7D7F81

Preview Lab

Preview with #5181A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5181A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva