#5F7EA2#5F7EA2

#5F7EA2 is a mid, moderate cyan. Relative luminance 0.200; OKLCH L 58.4% C 0.066 H 252.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5F7EA2
RGBrgb(95, 126, 162)
HSLhsl(212, 26%, 50%)
HSVhsv(212, 41%, 64%)
CMYKcmyk(41.4%, 22.2%, 0%, 36.5%)
CIE-LABlab(51.79, -1.41, -22.73)
CIE-LCHlch(51.79, 22.78, 266.44°)
OKLaboklab(58.36% -0.0197 -0.0631)
OKLCHoklch(58.36% 0.066 252.6)
XYZxyz(18.6996, 19.9622, 37.0432)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7EA2 #A2835F
analogous
#5F9FA2 #5F7EA2 #615FA2
triadic
#5F7EA2 #A25F7E #7EA25F
tetradic
#5F7EA2 #A25F9F #A2835F #5FA261
square
#5F7EA2 #A25F9F #A2835F #5FA261
split-complementary
#5F7EA2 #A2615F #9FA25F
monochromatic
#314255 #48607C #5F7EA2 #869DB8 #ACBCCF

Accessibility & contrast

On white

4.21
#5F7EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5F7EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7EA2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7EA2#FFFFFF#000000##000000
##5F7EA21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#707FA4
Deuteranopia (green-blind)
#6878A1
Tritanopia (blue-blind)
#47868A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f7ea2;
/* rgb */ color: rgb(95, 126, 162);
/* oklch */ color: oklch(58.4% 0.066 252.6);
Tailwind
colors: {
  custom: {
    50: '#8fa3bd',
    500: '#5f7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7ea2;
$custom-light: #8fa3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7ea2",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 212.239,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5836,
    "c": 0.06608,
    "h": 252.6
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#5F7EA2
secondary
#BDB09F
accent
#9765C3
background
#F8FAFB
surface
#F0F3F6
border
#CBCDD0
text
#0D0F12
muted
#7D7F81

Preview Lab

Preview with #5F7EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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