#5F5FEC#5F5FEC

#5F5FEC is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.7% C 0.207 H 277.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5F5FEC
RGBrgb(95, 95, 236)
HSLhsl(240, 79%, 65%)
HSVhsv(240, 60%, 93%)
CMYKcmyk(59.7%, 59.7%, 0%, 7.5%)
CIE-LABlab(47.84, 40.61, -71.37)
CIE-LCHlch(47.84, 82.11, 299.64°)
OKLaboklab(56.69% 0.0271 -0.2052)
OKLCHoklch(56.69% 0.207 277.5)
XYZxyz(23.9470, 16.6716, 81.2966)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FEC #ECEC5F
analogous
#5FA6EC #5F5FEC #A65FEC
triadic
#5F5FEC #EC5F5F #5FEC5F
tetradic
#5F5FEC #EC5FA6 #ECEC5F #5FECA6
square
#5F5FEC #EC5FA6 #ECEC5F #5FECA6
split-complementary
#5F5FEC #ECA65F #A6EC5F
monochromatic
#1616BA #2828E6 #5F5FEC #9696F2 #CCCCF9

Accessibility & contrast

On white

4.84
#5F5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5F5FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FEC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FEC#FFFFFF#000000##FFFFFF
##5F5FEC1.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5fec;
/* rgb */ color: rgb(95, 95, 236);
/* oklch */ color: oklch(56.7% 0.207 277.5);
Tailwind
colors: {
  custom: {
    50: '#998cf3',
    500: '#5f5fec',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fec;
$custom-light: #998cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fec",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 240,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.56688,
    "c": 0.20701,
    "h": 277.5
  },
  "luminance": 0.16673
}

Semantic roles & 50–950 ramp

primary
#5F5FEC
secondary
#EBEBBB
accent
#DB0ADB
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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