#5F5EF2#5F5EF2

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

Color values

HEX#5F5EF2
RGBrgb(95, 94, 242)
HSLhsl(240, 85%, 66%)
HSVhsv(240, 61%, 95%)
CMYKcmyk(60.7%, 61.2%, 0%, 5.1%)
CIE-LABlab(48.07, 43.11, -74.37)
CIE-LCHlch(48.07, 85.96, 300.10°)
OKLaboklab(56.99% 0.0277 -0.214)
OKLCHoklch(56.99% 0.216 277.4)
XYZxyz(24.7439, 16.8472, 85.9351)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EF2 #F1F25E
analogous
#5EA7F2 #5F5EF2 #A95EF2
triadic
#5F5EF2 #F25F5E #5EF25F
tetradic
#5F5EF2 #F25EA7 #F1F25E #5EF2A9
square
#5F5EF2 #F25EA7 #F1F25E #5EF2A9
split-complementary
#5F5EF2 #F2A95E #A7F25E
monochromatic
#1110C6 #2725ED #5F5EF2 #9797F7 #D0CFFB

Accessibility & contrast

On white

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

On black

4.37
#5F5EF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F5EF2#FFFFFF#000000##FFFFFF
##5F5EF21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5ef2;
/* rgb */ color: rgb(95, 94, 242);
/* oklch */ color: oklch(57.0% 0.216 277.4);
Tailwind
colors: {
  custom: {
    50: '#9a8cf7',
    500: '#5f5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ef2;
$custom-light: #9a8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ef2",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 240.405,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.56994,
    "c": 0.21583,
    "h": 277.4
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#5F5EF2
secondary
#EEEEBD
accent
#E204E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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