#5F5BFA#5F5BFA

#5F5BFA is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.2% C 0.229 H 277.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5F5BFA
RGBrgb(95, 91, 250)
HSLhsl(242, 94%, 67%)
HSVhsv(242, 64%, 98%)
CMYKcmyk(62%, 63.6%, 0%, 2%)
CIE-LABlab(48.03, 47.39, -78.90)
CIE-LCHlch(48.03, 92.04, 300.99°)
OKLaboklab(57.16% 0.0296 -0.2274)
OKLCHoklch(57.16% 0.229 277.4)
XYZxyz(25.7101, 16.8151, 92.3147)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BFA #F6FA5B
analogous
#5BA7FA #5F5BFA #AE5BFA
triadic
#5F5BFA #FA5F5B #5BFA5F
tetradic
#5F5BFA #FA5BA7 #F6FA5B #5BFAAE
square
#5F5BFA #FA5BA7 #F6FA5B #5BFAAE
split-complementary
#5F5BFA #FAAE5B #A7FA5B
monochromatic
#0C06D4 #2520F8 #5F5BFA #9996FC #D3D2FE

Accessibility & contrast

On white

4.81
#5F5BFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5F5BFA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BFA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BFA#FFFFFF#000000##FFFFFF
##5F5BFA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#006BF7
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5bfa;
/* rgb */ color: rgb(95, 91, 250);
/* oklch */ color: oklch(57.2% 0.229 277.4);
Tailwind
colors: {
  custom: {
    50: '#9c8afd',
    500: '#5f5bfa',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bfa;
$custom-light: #9c8afd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bfa",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 250
  },
  "hsl": {
    "h": 241.509,
    "s": 94.083,
    "l": 66.863
  },
  "oklch": {
    "l": 0.57158,
    "c": 0.22929,
    "h": 277.4
  },
  "luminance": 0.16817
}

Semantic roles & 50–950 ramp

primary
#5F5BFA
secondary
#F1F2BF
accent
#E600E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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