#5F74E4#5F74E4

#5F74E4 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.9% C 0.170 H 272.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F74E4
RGBrgb(95, 116, 228)
HSLhsl(231, 71%, 63%)
HSVhsv(231, 58%, 89%)
CMYKcmyk(58.3%, 49.1%, 0%, 10.6%)
CIE-LABlab(52.42, 25.27, -59.46)
CIE-LCHlch(52.42, 64.61, 293.03°)
OKLaboklab(59.94% 0.0068 -0.17)
OKLCHoklch(59.94% 0.17 272.3)
XYZxyz(24.9637, 20.5232, 76.0296)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74E4 #E4CF5F
analogous
#5FB7E4 #5F74E4 #8C5FE4
triadic
#5F74E4 #E45F74 #74E45F
tetradic
#5F74E4 #E45FB7 #E4CF5F #5FE48C
square
#5F74E4 #E45FB7 #E4CF5F #5FE48C
split-complementary
#5F74E4 #E48C5F #B7E45F
monochromatic
#1D33AC #2B47DB #5F74E4 #93A1ED #C8CFF6

Accessibility & contrast

On white

4.11
#5F74E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5F74E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74E4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74E4#FFFFFF#000000##000000
##5F74E41.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A83E8
Deuteranopia (green-blind)
#2178E2
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f74e4;
/* rgb */ color: rgb(95, 116, 228);
/* oklch */ color: oklch(59.9% 0.170 272.3);
Tailwind
colors: {
  custom: {
    50: '#979bed',
    500: '#5f74e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f74e4;
$custom-light: #979bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74e4",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 228
  },
  "hsl": {
    "h": 230.526,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59939,
    "c": 0.17016,
    "h": 272.3
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#5F74E4
secondary
#E7E0B8
accent
#B512D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F74E4

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

Preview Lab → · Contrast checker → · Palette generator →

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