#5F5ABA#5F5ABA

#5F5ABA is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.1% C 0.147 H 282.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5F5ABA
RGBrgb(95, 90, 186)
HSLhsl(243, 41%, 54%)
HSVhsv(243, 52%, 73%)
CMYKcmyk(48.9%, 51.6%, 0%, 27.1%)
CIE-LABlab(43.20, 27.85, -50.26)
CIE-LCHlch(43.20, 57.46, 298.99°)
OKLaboklab(52.14% 0.0315 -0.1432)
OKLCHoklch(52.14% 0.147 282.4)
XYZxyz(17.2357, 13.2895, 48.1018)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5ABA #B5BA5A
analogous
#5A85BA #5F5ABA #8F5ABA
triadic
#5F5ABA #BA5F5A #5ABA5F
tetradic
#5F5ABA #BA5A85 #B5BA5A #5ABA8F
square
#5F5ABA #BA5A85 #B5BA5A #5ABA8F
split-complementary
#5F5ABA #BA8F5A #85BA5A
monochromatic
#312D6C #443F97 #5F5ABA #8985CC #B3B0DE

Accessibility & contrast

On white

5.74
#5F5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5F5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5ABA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5ABA#FFFFFF#000000##FFFFFF
##5F5ABA1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#2563B8
Tritanopia (blue-blind)
#3E6F81
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f5aba;
/* rgb */ color: rgb(95, 90, 186);
/* oklch */ color: oklch(52.1% 0.147 282.4);
Tailwind
colors: {
  custom: {
    50: '#9288cf',
    500: '#5f5aba',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aba;
$custom-light: #9288cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aba",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 243.125,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52144,
    "c": 0.14661,
    "h": 282.4
  },
  "luminance": 0.1329
}

Semantic roles & 50–950 ramp

primary
#5F5ABA
secondary
#CACCA3
accent
#D157CB
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5F5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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