#5F5BDD#5F5BDD

#5F5BDD is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.8% C 0.193 H 279.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5F5BDD
RGBrgb(95, 91, 221)
HSLhsl(242, 66%, 61%)
HSVhsv(242, 59%, 87%)
CMYKcmyk(57%, 58.8%, 0%, 13.3%)
CIE-LABlab(45.82, 38.23, -66.18)
CIE-LCHlch(45.82, 76.43, 300.01°)
OKLaboklab(54.85% 0.0312 -0.19)
OKLCHoklch(54.85% 0.193 279.3)
XYZxyz(21.5074, 15.1341, 70.1804)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BDD #D9DD5B
analogous
#5B98DD #5F5BDD #A05BDD
triadic
#5F5BDD #DD5F5B #5BDD5F
tetradic
#5F5BDD #DD5B98 #D9DD5B #5BDDA0
square
#5F5BDD #DD5B98 #D9DD5B #5BDDA0
split-complementary
#5F5BDD #DDA05B #98DD5B
monochromatic
#24219D #302BD0 #5F5BDD #908EE8 #C2C0F2

Accessibility & contrast

On white

5.21
#5F5BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5F5BDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BDD
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BDD#FFFFFF#000000##FFFFFF
##5F5BDD1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#0067DA
Tritanopia (blue-blind)
#137A93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5bdd;
/* rgb */ color: rgb(95, 91, 221);
/* oklch */ color: oklch(54.8% 0.193 279.3);
Tailwind
colors: {
  custom: {
    50: '#9789e8',
    500: '#5f5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bdd;
$custom-light: #9789e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bdd",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 241.846,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54849,
    "c": 0.19255,
    "h": 279.3
  },
  "luminance": 0.15136
}

Semantic roles & 50–950 ramp

primary
#5F5BDD
secondary
#E1E2B1
accent
#CE18C8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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