#5F74E5#5F74E5

#5F74E5 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.0% C 0.172 H 272.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F74E5
RGBrgb(95, 116, 229)
HSLhsl(231, 72%, 64%)
HSVhsv(231, 59%, 90%)
CMYKcmyk(58.5%, 49.3%, 0%, 10.2%)
CIE-LABlab(52.49, 25.60, -59.92)
CIE-LCHlch(52.49, 65.16, 293.13°)
OKLaboklab(60.01% 0.0069 -0.1714)
OKLCHoklch(60.01% 0.172 272.3)
XYZxyz(25.1029, 20.5789, 76.7628)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74E5 #E5D05F
analogous
#5FB7E5 #5F74E5 #8D5FE5
triadic
#5F74E5 #E55F74 #74E55F
tetradic
#5F74E5 #E55FB7 #E5D05F #5FE58D
square
#5F74E5 #E55FB7 #E5D05F #5FE58D
split-complementary
#5F74E5 #E58D5F #B7E55F
monochromatic
#1C33AD #2A46DC #5F74E5 #94A2EE #C8CFF6

Accessibility & contrast

On white

4.10
#5F74E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5F74E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74E5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74E5#FFFFFF#000000##000000
##5F74E51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3983E9
Deuteranopia (green-blind)
#1F78E3
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f74e5;
/* rgb */ color: rgb(95, 116, 229);
/* oklch */ color: oklch(60.0% 0.172 272.3);
Tailwind
colors: {
  custom: {
    50: '#979bee',
    500: '#5f74e5',
    950: '#000000',
  },
}
SCSS
$custom: #5f74e5;
$custom-light: #979bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74e5",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 229
  },
  "hsl": {
    "h": 230.597,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60006,
    "c": 0.17152,
    "h": 272.3
  },
  "luminance": 0.20581
}

Semantic roles & 50–950 ramp

primary
#5F74E5
secondary
#E8E0B8
accent
#B611D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F74E5

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

Preview Lab → · Contrast checker → · Palette generator →

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