#5F51F2#5F51F2

#5F51F2 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.9% C 0.231 H 279.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F51F2
RGBrgb(95, 81, 242)
HSLhsl(245, 86%, 63%)
HSVhsv(245, 67%, 95%)
CMYKcmyk(60.7%, 66.5%, 0%, 5.1%)
CIE-LABlab(45.26, 50.59, -78.96)
CIE-LCHlch(45.26, 93.78, 302.65°)
OKLaboklab(54.95% 0.0381 -0.2276)
OKLCHoklch(54.95% 0.231 279.5)
XYZxyz(23.6837, 14.7268, 85.5817)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51F2 #E4F251
analogous
#5194F2 #5F51F2 #AF51F2
triadic
#5F51F2 #F25F51 #51F25F
tetradic
#5F51F2 #F25194 #E4F251 #51F2AF
square
#5F51F2 #F25194 #E4F251 #51F2AF
split-complementary
#5F51F2 #F2AF51 #94F251
monochromatic
#1D0EBB #2B18EE #5F51F2 #938AF6 #C8C3FB

Accessibility & contrast

On white

5.32
#5F51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5F51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51F2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51F2#FFFFFF#000000##FFFFFF
##5F51F21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F7
Deuteranopia (green-blind)
#0065EF
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f51f2;
/* rgb */ color: rgb(95, 81, 242);
/* oklch */ color: oklch(54.9% 0.231 279.5);
Tailwind
colors: {
  custom: {
    50: '#9b83f8',
    500: '#5f51f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f51f2;
$custom-light: #9b83f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51f2",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 245.217,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5495,
    "c": 0.23073,
    "h": 279.5
  },
  "luminance": 0.14729
}

Semantic roles & 50–950 ramp

primary
#5F51F2
secondary
#E7ECB3
accent
#E303CF
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #5F51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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