#5F74EA#5F74EA

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

Color values

HEX#5F74EA
RGBrgb(95, 116, 234)
HSLhsl(231, 77%, 65%)
HSVhsv(231, 59%, 92%)
CMYKcmyk(59.4%, 50.4%, 0%, 8.2%)
CIE-LABlab(52.80, 27.24, -62.22)
CIE-LCHlch(52.80, 67.93, 293.65°)
OKLaboklab(60.34% 0.0074 -0.1781)
OKLCHoklch(60.34% 0.178 272.4)
XYZxyz(25.8111, 20.8621, 80.4926)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74EA #EAD55F
analogous
#5FBAEA #5F74EA #8F5FEA
triadic
#5F74EA #EA5F74 #74EA5F
tetradic
#5F74EA #EA5FBA #EAD55F #5FEA8F
square
#5F74EA #EA5FBA #EAD55F #5FEA8F
split-complementary
#5F74EA #EA8F5F #BAEA5F
monochromatic
#1830B7 #2945E3 #5F74EA #95A3F1 #CBD2F8

Accessibility & contrast

On white

4.06
#5F74EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5F74EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74EA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74EA#FFFFFF#000000##000000
##5F74EA1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3384EE
Deuteranopia (green-blind)
#0F78E8
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f74ea;
/* rgb */ color: rgb(95, 116, 234);
/* oklch */ color: oklch(60.3% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#989bf1',
    500: '#5f74ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f74ea;
$custom-light: #989bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74ea",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 234
  },
  "hsl": {
    "h": 230.935,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60343,
    "c": 0.17829,
    "h": 272.4
  },
  "luminance": 0.20864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F74EA

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

Preview Lab → · Contrast checker → · Palette generator →

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