#5F6FEC#5F6FEC

#5F6FEC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.5% C 0.187 H 273.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5F6FEC
RGBrgb(95, 111, 236)
HSLhsl(233, 79%, 65%)
HSVhsv(233, 60%, 93%)
CMYKcmyk(59.7%, 53%, 0%, 7.5%)
CIE-LABlab(51.67, 30.95, -65.16)
CIE-LCHlch(51.67, 72.13, 295.41°)
OKLaboklab(59.54% 0.0124 -0.1868)
OKLCHoklch(59.54% 0.187 273.8)
XYZxyz(25.5391, 19.8559, 81.8273)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6FEC #ECDC5F
analogous
#5FB6EC #5F6FEC #955FEC
triadic
#5F6FEC #EC5F6F #6FEC5F
tetradic
#5F6FEC #EC5FB6 #ECDC5F #5FEC95
square
#5F6FEC #EC5FB6 #ECDC5F #5FEC95
split-complementary
#5F6FEC #EC955F #B6EC5F
monochromatic
#1629BA #283EE6 #5F6FEC #96A0F2 #CCD1F9

Accessibility & contrast

On white

4.22
#5F6FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5F6FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6FEC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6FEC#FFFFFF#000000##000000
##5F6FEC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81F0
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#008CA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f6fec;
/* rgb */ color: rgb(95, 111, 236);
/* oklch */ color: oklch(59.5% 0.187 273.8);
Tailwind
colors: {
  custom: {
    50: '#9898f3',
    500: '#5f6fec',
    950: '#000000',
  },
}
SCSS
$custom: #5f6fec;
$custom-light: #9898f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6fec",
  "rgb": {
    "r": 95,
    "g": 111,
    "b": 236
  },
  "hsl": {
    "h": 233.191,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59537,
    "c": 0.18723,
    "h": 273.8
  },
  "luminance": 0.19858
}

Semantic roles & 50–950 ramp

primary
#5F6FEC
secondary
#EBE6BB
accent
#C30ADB
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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