#5F5BDA#5F5BDA

#5F5BDA is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.6% C 0.189 H 279.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5F5BDA
RGBrgb(95, 91, 218)
HSLhsl(242, 63%, 61%)
HSVhsv(242, 58%, 85%)
CMYKcmyk(56.4%, 58.3%, 0%, 14.5%)
CIE-LABlab(45.60, 37.28, -64.82)
CIE-LCHlch(45.60, 74.78, 299.91°)
OKLaboklab(54.62% 0.0312 -0.186)
OKLCHoklch(54.62% 0.189 279.5)
XYZxyz(21.1113, 14.9756, 68.0942)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BDA #D6DA5B
analogous
#5B96DA #5F5BDA #9E5BDA
triadic
#5F5BDA #DA5F5B #5BDA5F
tetradic
#5F5BDA #DA5B96 #D6DA5B #5BDA9E
square
#5F5BDA #DA5B96 #D6DA5B #5BDA9E
split-complementary
#5F5BDA #DA9E5B #96DA5B
monochromatic
#262298 #332ECA #5F5BDA #908DE5 #C0BFF1

Accessibility & contrast

On white

5.26
#5F5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5F5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BDA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BDA#FFFFFF#000000##FFFFFF
##5F5BDA1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#1A7992
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5bda;
/* rgb */ color: rgb(95, 91, 218);
/* oklch */ color: oklch(54.6% 0.189 279.5);
Tailwind
colors: {
  custom: {
    50: '#9789e6',
    500: '#5f5bda',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bda;
$custom-light: #9789e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bda",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 241.89,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54621,
    "c": 0.18862,
    "h": 279.5
  },
  "luminance": 0.14977
}

Semantic roles & 50–950 ramp

primary
#5F5BDA
secondary
#DFE1B0
accent
#CB1BC5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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