#5F5EB2#5F5EB2

#5F5EB2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.4% C 0.130 H 281.5°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5F5EB2
RGBrgb(95, 94, 178)
HSLhsl(241, 35%, 53%)
HSVhsv(241, 47%, 70%)
CMYKcmyk(46.6%, 47.2%, 0%, 30.2%)
CIE-LABlab(43.73, 22.90, -44.73)
CIE-LCHlch(43.73, 50.25, 297.11°)
OKLaboklab(52.39% 0.0258 -0.1269)
OKLCHoklch(52.39% 0.13 281.5)
XYZxyz(16.7555, 13.6518, 43.8630)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EB2 #B1B25E
analogous
#5E87B2 #5F5EB2 #895EB2
triadic
#5F5EB2 #B25F5E #5EB25F
tetradic
#5F5EB2 #B25E87 #B1B25E #5EB289
square
#5F5EB2 #B25E87 #B1B25E #5EB289
split-complementary
#5F5EB2 #B2895E #87B25E
monochromatic
#313065 #45448F #5F5EB2 #8887C6 #B1B1DA

Accessibility & contrast

On white

5.63
#5F5EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5F5EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EB2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EB2#FFFFFF#000000##FFFFFF
##5F5EB21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#3664B0
Tritanopia (blue-blind)
#43707F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f5eb2;
/* rgb */ color: rgb(95, 94, 178);
/* oklch */ color: oklch(52.4% 0.130 281.5);
Tailwind
colors: {
  custom: {
    50: '#918bc9',
    500: '#5f5eb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5eb2;
$custom-light: #918bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5eb2",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 240.714,
    "s": 35.294,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52388,
    "c": 0.12952,
    "h": 281.5
  },
  "luminance": 0.13653
}

Semantic roles & 50–950 ramp

primary
#5F5EB2
secondary
#C8C8A4
accent
#CB5CCA
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0C13
muted
#7E7D82

Preview Lab

Preview with #5F5EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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