#5F74EB#5F74EB

#5F74EB is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.4% C 0.180 H 272.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5F74EB
RGBrgb(95, 116, 235)
HSLhsl(231, 78%, 65%)
HSVhsv(231, 60%, 92%)
CMYKcmyk(59.6%, 50.6%, 0%, 7.8%)
CIE-LABlab(52.86, 27.57, -62.68)
CIE-LCHlch(52.86, 68.48, 293.74°)
OKLaboklab(60.41% 0.0075 -0.1795)
OKLCHoklch(60.41% 0.18 272.4)
XYZxyz(25.9551, 20.9198, 81.2513)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74EB #EBD65F
analogous
#5FBAEB #5F74EB #905FEB
triadic
#5F74EB #EB5F74 #74EB5F
tetradic
#5F74EB #EB5FBA #EBD65F #5FEB90
square
#5F74EB #EB5FBA #EBD65F #5FEB90
split-complementary
#5F74EB #EB905F #BAEB5F
monochromatic
#172FB9 #2945E4 #5F74EB #95A3F2 #CCD3F9

Accessibility & contrast

On white

4.05
#5F74EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5F74EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74EB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74EB#FFFFFF#000000##000000
##5F74EB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3185EF
Deuteranopia (green-blind)
#0A78E9
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f74eb;
/* rgb */ color: rgb(95, 116, 235);
/* oklch */ color: oklch(60.4% 0.180 272.4);
Tailwind
colors: {
  custom: {
    50: '#989bf2',
    500: '#5f74eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f74eb;
$custom-light: #989bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74eb",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 231,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60411,
    "c": 0.17964,
    "h": 272.4
  },
  "luminance": 0.20922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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