#5F48EF#5F48EF

#5F48EF is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.4% C 0.237 H 281.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5F48EF
RGBrgb(95, 72, 239)
HSLhsl(248, 84%, 61%)
HSVhsv(248, 70%, 94%)
CMYKcmyk(60.3%, 69.9%, 0%, 6.3%)
CIE-LABlab(43.21, 54.60, -80.63)
CIE-LCHlch(43.21, 97.38, 304.11°)
OKLaboklab(53.4% 0.0452 -0.2324)
OKLCHoklch(53.4% 0.237 281)
XYZxyz(22.6118, 13.2980, 83.0198)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48EF #D8EF48
analogous
#4884EF #5F48EF #B248EF
triadic
#5F48EF #EF5F48 #48EF5F
tetradic
#5F48EF #EF4884 #D8EF48 #48EFB2
square
#5F48EF #EF4884 #D8EF48 #48EFB2
split-complementary
#5F48EF #EFB248 #84EF48
monochromatic
#250FAD #3114E6 #5F48EF #9080F4 #C1B9F9

Accessibility & contrast

On white

5.74
#5F48EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5F48EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48EF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48EF#FFFFFF#000000##FFFFFF
##5F48EF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF4
Deuteranopia (green-blind)
#0060EC
Tritanopia (blue-blind)
#007597
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f48ef;
/* rgb */ color: rgb(95, 72, 239);
/* oklch */ color: oklch(53.4% 0.237 281.0);
Tailwind
colors: {
  custom: {
    50: '#9b7df6',
    500: '#5f48ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f48ef;
$custom-light: #9b7df6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48ef",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 248.263,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53401,
    "c": 0.23681,
    "h": 281
  },
  "luminance": 0.133
}

Semantic roles & 50–950 ramp

primary
#5F48EF
secondary
#E0E9AA
accent
#E005C2
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5F48EF

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

Preview Lab → · Contrast checker → · Palette generator →

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