#5F5EF4#5F5EF4

#5F5EF4 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.218 H 277.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F5EF4
RGBrgb(95, 94, 244)
HSLhsl(240, 87%, 66%)
HSVhsv(240, 61%, 96%)
CMYKcmyk(61.1%, 61.5%, 0%, 4.3%)
CIE-LABlab(48.22, 43.75, -75.24)
CIE-LCHlch(48.22, 87.03, 300.18°)
OKLaboklab(57.15% 0.0276 -0.2166)
OKLCHoklch(57.15% 0.218 277.3)
XYZxyz(25.0459, 16.9680, 87.5257)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EF4 #F3F45E
analogous
#5EA8F4 #5F5EF4 #AA5EF4
triadic
#5F5EF4 #F45F5E #5EF45F
tetradic
#5F5EF4 #F45EA8 #F3F45E #5EF4AA
square
#5F5EF4 #F45EA8 #F3F45E #5EF4AA
split-complementary
#5F5EF4 #F4AA5E #A8F45E
monochromatic
#0F0ECA #2625F0 #5F5EF4 #9897F8 #D1D1FC

Accessibility & contrast

On white

4.78
#5F5EF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5F5EF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EF4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EF4#FFFFFF#000000##FFFFFF
##5F5EF41.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F9
Deuteranopia (green-blind)
#006CF1
Tritanopia (blue-blind)
#0083A0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5ef4;
/* rgb */ color: rgb(95, 94, 244);
/* oklch */ color: oklch(57.2% 0.218 277.3);
Tailwind
colors: {
  custom: {
    50: '#9b8cf9',
    500: '#5f5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ef4;
$custom-light: #9b8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ef4",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 240.4,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.57153,
    "c": 0.21836,
    "h": 277.3
  },
  "luminance": 0.1697
}

Semantic roles & 50–950 ramp

primary
#5F5EF4
secondary
#EFEFBE
accent
#E402E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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