#5F48E4#5F48E4

#5F48E4 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.4% C 0.224 H 282.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5F48E4
RGBrgb(95, 72, 228)
HSLhsl(249, 74%, 59%)
HSVhsv(249, 68%, 89%)
CMYKcmyk(58.3%, 68.4%, 0%, 10.6%)
CIE-LABlab(42.26, 51.33, -75.97)
CIE-LCHlch(42.26, 91.68, 304.05°)
OKLaboklab(52.43% 0.0471 -0.2188)
OKLCHoklch(52.43% 0.224 282.1)
XYZxyz(21.0359, 12.6676, 74.7204)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48E4 #CDE448
analogous
#487FE4 #5F48E4 #AD48E4
triadic
#5F48E4 #E45F48 #48E45F
tetradic
#5F48E4 #E4487F #CDE448 #48E4AD
square
#5F48E4 #E4487F #CDE448 #48E4AD
split-complementary
#5F48E4 #E4AD48 #7FE448
monochromatic
#2A179B #391FD0 #5F48E4 #8E7DEC #BCB3F4

Accessibility & contrast

On white

5.94
#5F48E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F48E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48E4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48E4#FFFFFF#000000##FFFFFF
##5F48E41.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E9
Deuteranopia (green-blind)
#005EE1
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f48e4;
/* rgb */ color: rgb(95, 72, 228);
/* oklch */ color: oklch(52.4% 0.224 282.1);
Tailwind
colors: {
  custom: {
    50: '#9a7dee',
    500: '#5f48e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f48e4;
$custom-light: #9a7dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48e4",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 228
  },
  "hsl": {
    "h": 248.846,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52431,
    "c": 0.2238,
    "h": 282.1
  },
  "luminance": 0.12669
}

Semantic roles & 50–950 ramp

primary
#5F48E4
secondary
#DAE3A5
accent
#F137D5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F48E4

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

Preview Lab → · Contrast checker → · Palette generator →

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