#5F48DF#5F48DF

#5F48DF is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.0% C 0.218 H 282.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F48DF
RGBrgb(95, 72, 223)
HSLhsl(249, 70%, 58%)
HSVhsv(249, 68%, 87%)
CMYKcmyk(57.4%, 67.7%, 0%, 12.5%)
CIE-LABlab(41.84, 49.84, -73.81)
CIE-LCHlch(41.84, 89.06, 304.03°)
OKLaboklab(52% 0.0479 -0.2125)
OKLCHoklch(52% 0.218 282.7)
XYZxyz(20.3518, 12.3940, 71.1176)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48DF #C8DF48
analogous
#487CDF #5F48DF #AA48DF
triadic
#5F48DF #DF5F48 #48DF5F
tetradic
#5F48DF #DF487C #C8DF48 #48DFAA
square
#5F48DF #DF487C #C8DF48 #48DFAA
split-complementary
#5F48DF #DFAA48 #7CDF48
monochromatic
#2C1A93 #3C23C7 #5F48DF #8D7CE8 #BAB0F1

Accessibility & contrast

On white

6.04
#5F48DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F48DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48DF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48DF#FFFFFF#000000##FFFFFF
##5F48DF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#146F8E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f48df;
/* rgb */ color: rgb(95, 72, 223);
/* oklch */ color: oklch(52.0% 0.218 282.7);
Tailwind
colors: {
  custom: {
    50: '#997dea',
    500: '#5f48df',
    950: '#000000',
  },
}
SCSS
$custom: #5f48df;
$custom-light: #997dea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48df",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 249.139,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.21779,
    "h": 282.7
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#5F48DF
secondary
#D6E0A3
accent
#ED3BD2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F48DF

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

Preview Lab → · Contrast checker → · Palette generator →

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