#5F5699#5F5699

#5F5699 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 49.3% C 0.105 H 288.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5F5699
RGBrgb(95, 86, 153)
HSLhsl(248, 28%, 47%)
HSVhsv(248, 44%, 60%)
CMYKcmyk(37.9%, 43.8%, 0%, 40%)
CIE-LABlab(40.23, 20.41, -35.48)
CIE-LCHlch(40.23, 40.93, 299.91°)
OKLaboklab(49.28% 0.0326 -0.0999)
OKLCHoklch(49.28% 0.105 288.1)
XYZxyz(13.7953, 11.3880, 31.6021)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5699 #909956
analogous
#566F99 #5F5699 #815699
triadic
#5F5699 #995F56 #56995F
tetradic
#5F5699 #99566F #909956 #569981
square
#5F5699 #99566F #909956 #569981
split-complementary
#5F5699 #998156 #6F9956
monochromatic
#2E2A4B #474072 #5F5699 #8179B4 #A5A0CA

Accessibility & contrast

On white

6.41
#5F5699 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F5699 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5699
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5699#FFFFFF#000000##FFFFFF
##5F56991.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F609C
Deuteranopia (green-blind)
#3F5D97
Tritanopia (blue-blind)
#506370
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f5699;
/* rgb */ color: rgb(95, 86, 153);
/* oklch */ color: oklch(49.3% 0.105 288.1);
Tailwind
colors: {
  custom: {
    50: '#8f85b7',
    500: '#5f5699',
    950: '#000000',
  },
}
SCSS
$custom: #5f5699;
$custom-light: #8f85b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5699",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 153
  },
  "hsl": {
    "h": 248.06,
    "s": 28.033,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49277,
    "c": 0.10506,
    "h": 288.1
  },
  "luminance": 0.11388
}

Semantic roles & 50–950 ramp

primary
#5F5699
secondary
#B2B794
accent
#C463B7
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0D0B11
muted
#7D7C80

Preview Lab

Preview with #5F5699

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

Preview Lab → · Contrast checker → · Palette generator →

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