#5F5BDB#5F5BDB

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

Color values

HEX#5F5BDB
RGBrgb(95, 91, 219)
HSLhsl(242, 64%, 61%)
HSVhsv(242, 58%, 86%)
CMYKcmyk(56.6%, 58.4%, 0%, 14.1%)
CIE-LABlab(45.67, 37.60, -65.28)
CIE-LCHlch(45.67, 75.33, 299.94°)
OKLaboklab(54.7% 0.0312 -0.1873)
OKLCHoklch(54.7% 0.19 279.5)
XYZxyz(21.2426, 15.0281, 68.7854)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BDB #D7DB5B
analogous
#5B97DB #5F5BDB #9F5BDB
triadic
#5F5BDB #DB5F5B #5BDB5F
tetradic
#5F5BDB #DB5B97 #D7DB5B #5BDB9F
square
#5F5BDB #DB5B97 #D7DB5B #5BDB9F
split-complementary
#5F5BDB #DB9F5B #97DB5B
monochromatic
#26229A #322DCC #5F5BDB #908DE6 #C1BFF1

Accessibility & contrast

On white

5.24
#5F5BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5F5BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BDB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BDB#FFFFFF#000000##FFFFFF
##5F5BDB1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#187A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5bdb;
/* rgb */ color: rgb(95, 91, 219);
/* oklch */ color: oklch(54.7% 0.190 279.5);
Tailwind
colors: {
  custom: {
    50: '#9789e7',
    500: '#5f5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bdb;
$custom-light: #9789e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bdb",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 241.875,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54697,
    "c": 0.18993,
    "h": 279.5
  },
  "luminance": 0.1503
}

Semantic roles & 50–950 ramp

primary
#5F5BDB
secondary
#E0E1B1
accent
#CC1AC6
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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