#5F51DB#5F51DB

#5F51DB is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.202 H 281.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5F51DB
RGBrgb(95, 81, 219)
HSLhsl(246, 66%, 59%)
HSVhsv(246, 63%, 86%)
CMYKcmyk(56.6%, 63%, 0%, 14.1%)
CIE-LABlab(43.41, 43.52, -68.96)
CIE-LCHlch(43.41, 81.55, 302.25°)
OKLaboklab(53.03% 0.0406 -0.1982)
OKLCHoklch(53.03% 0.202 281.6)
XYZxyz(20.4439, 13.4309, 68.5192)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51DB #CDDB51
analogous
#5188DB #5F51DB #A451DB
triadic
#5F51DB #DB5F51 #51DB5F
tetradic
#5F51DB #DB5188 #CDDB51 #51DBA4
square
#5F51DB #DB5188 #CDDB51 #51DBA4
split-complementary
#5F51DB #DBA451 #88DB51
monochromatic
#2A1E93 #3929C6 #5F51DB #8E84E5 #BCB6F0

Accessibility & contrast

On white

5.70
#5F51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5F51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51DB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51DB#FFFFFF#000000##FFFFFF
##5F51DB1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0062D8
Tritanopia (blue-blind)
#1B738F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f51db;
/* rgb */ color: rgb(95, 81, 219);
/* oklch */ color: oklch(53.0% 0.202 281.6);
Tailwind
colors: {
  custom: {
    50: '#9883e7',
    500: '#5f51db',
    950: '#000000',
  },
}
SCSS
$custom: #5f51db;
$custom-light: #9883e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51db",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 246.087,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53033,
    "c": 0.20235,
    "h": 281.6
  },
  "luminance": 0.13432
}

Semantic roles & 50–950 ramp

primary
#5F51DB
secondary
#DADFA9
accent
#E93FD7
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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