#5F74E9#5F74E9

#5F74E9 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.3% C 0.177 H 272.4°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5F74E9
RGBrgb(95, 116, 233)
HSLhsl(231, 76%, 64%)
HSVhsv(231, 59%, 91%)
CMYKcmyk(59.2%, 50.2%, 0%, 8.6%)
CIE-LABlab(52.74, 26.91, -61.76)
CIE-LCHlch(52.74, 67.37, 293.55°)
OKLaboklab(60.28% 0.0073 -0.1768)
OKLCHoklch(60.28% 0.177 272.4)
XYZxyz(25.6678, 20.8048, 79.7381)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74E9 #E9D45F
analogous
#5FB9E9 #5F74E9 #8F5FE9
triadic
#5F74E9 #E95F74 #74E95F
tetradic
#5F74E9 #E95FB9 #E9D45F #5FE98F
square
#5F74E9 #E95FB9 #E9D45F #5FE98F
split-complementary
#5F74E9 #E98F5F #B9E95F
monochromatic
#1931B5 #2945E2 #5F74E9 #95A3F0 #CBD1F8

Accessibility & contrast

On white

4.07
#5F74E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5F74E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74E9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74E9#FFFFFF#000000##000000
##5F74E91.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3484ED
Deuteranopia (green-blind)
#1378E7
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f74e9;
/* rgb */ color: rgb(95, 116, 233);
/* oklch */ color: oklch(60.3% 0.177 272.4);
Tailwind
colors: {
  custom: {
    50: '#989bf1',
    500: '#5f74e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f74e9;
$custom-light: #989bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74e9",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 233
  },
  "hsl": {
    "h": 230.87,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60275,
    "c": 0.17694,
    "h": 272.4
  },
  "luminance": 0.20807
}

Semantic roles & 50–950 ramp

primary
#5F74E9
secondary
#EAE3BA
accent
#B90DD8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F74E9

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

Preview Lab → · Contrast checker → · Palette generator →

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