#5F6CB2#5F6CB2

#5F6CB2 is a mid, moderate blue. Relative luminance 0.164; OKLCH L 55.2% C 0.110 H 274.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5F6CB2
RGBrgb(95, 108, 178)
HSLhsl(231, 35%, 54%)
HSVhsv(231, 47%, 70%)
CMYKcmyk(46.6%, 39.3%, 0%, 30.2%)
CIE-LABlab(47.46, 14.22, -38.81)
CIE-LCHlch(47.46, 41.33, 290.12°)
OKLaboklab(55.23% 0.0082 -0.1095)
OKLCHoklch(55.23% 0.11 274.3)
XYZxyz(18.1153, 16.3714, 44.3163)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6CB2 #B2A55F
analogous
#5F95B2 #5F6CB2 #7B5FB2
triadic
#5F6CB2 #B25F6C #6CB25F
tetradic
#5F6CB2 #B25F95 #B2A55F #5FB27B
square
#5F6CB2 #B25F95 #B2A55F #5FB27B
split-complementary
#5F6CB2 #B27B5F #95B25F
monochromatic
#313966 #45508F #5F6CB2 #8892C6 #B2B8DA

Accessibility & contrast

On white

4.91
#5F6CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5F6CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6CB2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6CB2#FFFFFF#000000##FFFFFF
##5F6CB21.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#4B6DB0
Tritanopia (blue-blind)
#417A86
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f6cb2;
/* rgb */ color: rgb(95, 108, 178);
/* oklch */ color: oklch(55.2% 0.110 274.3);
Tailwind
colors: {
  custom: {
    50: '#9195c9',
    500: '#5f6cb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f6cb2;
$custom-light: #9195c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6cb2",
  "rgb": {
    "r": 95,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 230.602,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5523,
    "c": 0.10983,
    "h": 274.3
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#5F6CB2
secondary
#C8C3A5
accent
#BA5DCB
background
#F9F9FC
surface
#F1F1F8
border
#CBCBD1
text
#0D0D13
muted
#7E7E82

Preview Lab

Preview with #5F6CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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