#5F5EFB#5F5EFB

#5F5EFB is a mid, highly saturated blue. Relative luminance 0.174; OKLCH L 57.7% C 0.227 H 276.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5F5EFB
RGBrgb(95, 94, 251)
HSLhsl(240, 95%, 68%)
HSVhsv(240, 63%, 98%)
CMYKcmyk(62.2%, 62.5%, 0%, 1.6%)
CIE-LABlab(48.76, 45.97, -78.26)
CIE-LCHlch(48.76, 90.76, 300.43°)
OKLaboklab(57.72% 0.0271 -0.2255)
OKLCHoklch(57.72% 0.227 276.9)
XYZxyz(26.1290, 17.4012, 93.2299)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EFB #FAFB5E
analogous
#5EACFB #5F5EFB #AD5EFB
triadic
#5F5EFB #FB5F5E #5EFB5F
tetradic
#5F5EFB #FB5EAC #FAFB5E #5EFBAD
square
#5F5EFB #FB5EAC #FAFB5E #5EFBAD
split-complementary
#5F5EFB #FBAD5E #ACFB5E
monochromatic
#0705D9 #2422FA #5F5EFB #9A9AFC #D6D5FE

Accessibility & contrast

On white

4.69
#5F5EFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5F5EFB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EFB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EFB#FFFFFF#000000##FFFFFF
##5F5EFB1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#006DF8
Tritanopia (blue-blind)
#0086A4
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f5efb;
/* rgb */ color: rgb(95, 94, 251);
/* oklch */ color: oklch(57.7% 0.227 276.9);
Tailwind
colors: {
  custom: {
    50: '#9c8cfe',
    500: '#5f5efb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5efb;
$custom-light: #9c8cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5efb",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 251
  },
  "hsl": {
    "h": 240.382,
    "s": 95.152,
    "l": 67.647
  },
  "oklch": {
    "l": 0.57719,
    "c": 0.22711,
    "h": 276.9
  },
  "luminance": 0.17403
}

Semantic roles & 50–950 ramp

primary
#5F5EFB
secondary
#F2F3C2
accent
#E600E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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