#5F5BB2#5F5BB2

#5F5BB2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.134 H 282.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5F5BB2
RGBrgb(95, 91, 178)
HSLhsl(243, 36%, 53%)
HSVhsv(243, 49%, 70%)
CMYKcmyk(46.6%, 48.9%, 0%, 30.2%)
CIE-LABlab(42.96, 24.77, -45.96)
CIE-LCHlch(42.96, 52.21, 298.32°)
OKLaboklab(51.81% 0.0295 -0.1306)
OKLCHoklch(51.81% 0.134 282.7)
XYZxyz(16.4939, 13.1286, 43.7758)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BB2 #AEB25B
analogous
#5B82B2 #5F5BB2 #8B5BB2
triadic
#5F5BB2 #B25F5B #5BB25F
tetradic
#5F5BB2 #B25B82 #AEB25B #5BB28B
square
#5F5BB2 #B25B82 #AEB25B #5BB28B
split-complementary
#5F5BB2 #B28B5B #82B25B
monochromatic
#312F64 #46428D #5F5BB2 #8885C6 #B0AED9

Accessibility & contrast

On white

5.79
#5F5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5F5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BB2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BB2#FFFFFF#000000##FFFFFF
##5F5BB21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B5
Deuteranopia (green-blind)
#3163B0
Tritanopia (blue-blind)
#436D7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f5bb2;
/* rgb */ color: rgb(95, 91, 178);
/* oklch */ color: oklch(51.8% 0.134 282.7);
Tailwind
colors: {
  custom: {
    50: '#9189c9',
    500: '#5f5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bb2;
$custom-light: #9189c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bb2",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 242.759,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51805,
    "c": 0.13386,
    "h": 282.7
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#5F5BB2
secondary
#C6C7A2
accent
#CC5CC7
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5F5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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