#5F7BB2#5F7BB2

#5F7BB2 is a mid, moderate blue. Relative luminance 0.198; OKLCH L 58.5% C 0.091 H 263.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F7BB2
RGBrgb(95, 123, 178)
HSLhsl(220, 35%, 54%)
HSVhsv(220, 47%, 70%)
CMYKcmyk(46.6%, 30.9%, 0%, 30.2%)
CIE-LABlab(51.62, 5.10, -32.26)
CIE-LCHlch(51.62, 32.66, 278.98°)
OKLaboklab(58.45% -0.0108 -0.0904)
OKLCHoklch(58.45% 0.091 263.2)
XYZxyz(19.8355, 19.8119, 44.8897)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BB2 #B2965F
analogous
#5FA4B2 #5F7BB2 #6C5FB2
triadic
#5F7BB2 #B25F7B #7BB25F
tetradic
#5F7BB2 #B25FA4 #B2965F #5FB26C
square
#5F7BB2 #B25FA4 #B2965F #5FB26C
split-complementary
#5F7BB2 #B26C5F #A4B25F
monochromatic
#314366 #455E8F #5F7BB2 #889DC6 #B2BFDA

Accessibility & contrast

On white

4.23
#5F7BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5F7BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BB2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BB2#FFFFFF#000000##000000
##5F7BB21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#677FB4
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#3E878F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f7bb2;
/* rgb */ color: rgb(95, 123, 178);
/* oklch */ color: oklch(58.5% 0.091 263.2);
Tailwind
colors: {
  custom: {
    50: '#90a1c9',
    500: '#5f7bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bb2;
$custom-light: #90a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bb2",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 219.759,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58453,
    "c": 0.09107,
    "h": 263.2
  },
  "luminance": 0.19813
}

Semantic roles & 50–950 ramp

primary
#5F7BB2
secondary
#C8BCA5
accent
#A65DCB
background
#F9F9FC
surface
#F1F2F8
border
#CBCCD1
text
#0D0E13
muted
#7E7E82

Preview Lab

Preview with #5F7BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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