#5F74EC#5F74EC

#5F74EC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.5% C 0.181 H 272.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F74EC
RGBrgb(95, 116, 236)
HSLhsl(231, 79%, 65%)
HSVhsv(231, 60%, 93%)
CMYKcmyk(59.7%, 50.8%, 0%, 7.5%)
CIE-LABlab(52.93, 27.90, -63.14)
CIE-LCHlch(52.93, 69.03, 293.84°)
OKLaboklab(60.48% 0.0076 -0.1808)
OKLCHoklch(60.48% 0.181 272.4)
XYZxyz(26.1000, 20.9777, 82.0143)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74EC #ECD75F
analogous
#5FBAEC #5F74EC #915FEC
triadic
#5F74EC #EC5F74 #74EC5F
tetradic
#5F74EC #EC5FBA #ECD75F #5FEC91
square
#5F74EC #EC5FBA #ECD75F #5FEC91
split-complementary
#5F74EC #EC915F #BAEC5F
monochromatic
#162FBA #2844E6 #5F74EC #96A4F2 #CCD3F9

Accessibility & contrast

On white

4.04
#5F74EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F74EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74EC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74EC#FFFFFF#000000##000000
##5F74EC1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3085F0
Deuteranopia (green-blind)
#0478EA
Tritanopia (blue-blind)
#0090A5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f74ec;
/* rgb */ color: rgb(95, 116, 236);
/* oklch */ color: oklch(60.5% 0.181 272.4);
Tailwind
colors: {
  custom: {
    50: '#989bf3',
    500: '#5f74ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f74ec;
$custom-light: #989bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74ec",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 231.064,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60479,
    "c": 0.18099,
    "h": 272.4
  },
  "luminance": 0.2098
}

Semantic roles & 50–950 ramp

primary
#5F74EC
secondary
#EBE4BB
accent
#BC0ADB
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F74EC

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

Preview Lab → · Contrast checker → · Palette generator →

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