#5F54E1#5F54E1

#5F54E1 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.0% C 0.206 H 280.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F54E1
RGBrgb(95, 84, 225)
HSLhsl(245, 70%, 61%)
HSVhsv(245, 63%, 88%)
CMYKcmyk(57.8%, 62.7%, 0%, 11.8%)
CIE-LABlab(44.53, 43.63, -70.55)
CIE-LCHlch(44.53, 82.95, 301.74°)
OKLaboklab(54% 0.0374 -0.2029)
OKLCHoklch(54% 0.206 280.4)
XYZxyz(21.4760, 14.2083, 72.8304)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54E1 #D6E154
analogous
#548FE1 #5F54E1 #A554E1
triadic
#5F54E1 #E15F54 #54E15F
tetradic
#5F54E1 #E1548F #D6E154 #54E1A5
square
#5F54E1 #E1548F #D6E154 #54E1A5
split-complementary
#5F54E1 #E1A554 #8FE154
monochromatic
#261C9F #3325D3 #5F54E1 #9088EA #C0BCF3

Accessibility & contrast

On white

5.47
#5F54E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5F54E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54E1
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54E1#FFFFFF#000000##FFFFFF
##5F54E11.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE5
Deuteranopia (green-blind)
#0064DE
Tritanopia (blue-blind)
#077793
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f54e1;
/* rgb */ color: rgb(95, 84, 225);
/* oklch */ color: oklch(54.0% 0.206 280.4);
Tailwind
colors: {
  custom: {
    50: '#9885eb',
    500: '#5f54e1',
    950: '#000000',
  },
}
SCSS
$custom: #5f54e1;
$custom-light: #9885eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54e1",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 244.681,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53999,
    "c": 0.2063,
    "h": 280.4
  },
  "luminance": 0.1421
}

Semantic roles & 50–950 ramp

primary
#5F54E1
secondary
#DFE3AE
accent
#D213C3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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