#5F74F2#5F74F2

#5F74F2 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.9% C 0.189 H 272.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5F74F2
RGBrgb(95, 116, 242)
HSLhsl(231, 85%, 66%)
HSVhsv(231, 61%, 95%)
CMYKcmyk(60.7%, 52.1%, 0%, 5.1%)
CIE-LABlab(53.31, 29.87, -65.86)
CIE-LCHlch(53.31, 72.32, 294.40°)
OKLaboklab(60.89% 0.008 -0.1888)
OKLCHoklch(60.89% 0.189 272.4)
XYZxyz(26.9864, 21.3323, 86.6826)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F74F2 #F2DD5F
analogous
#5FBDF2 #5F74F2 #935FF2
triadic
#5F74F2 #F25F74 #74F25F
tetradic
#5F74F2 #F25FBD #F2DD5F #5FF293
square
#5F74F2 #F25FBD #F2DD5F #5FF293
split-complementary
#5F74F2 #F2935F #BDF25F
monochromatic
#102AC6 #2643ED #5F74F2 #98A5F7 #D0D6FB

Accessibility & contrast

On white

3.99
#5F74F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5F74F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F74F2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F74F2#FFFFFF#000000##000000
##5F74F21.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2686F6
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#0091A8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f74f2;
/* rgb */ color: rgb(95, 116, 242);
/* oklch */ color: oklch(60.9% 0.189 272.4);
Tailwind
colors: {
  custom: {
    50: '#999bf7',
    500: '#5f74f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f74f2;
$custom-light: #999bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f74f2",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 231.429,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60893,
    "c": 0.18901,
    "h": 272.4
  },
  "luminance": 0.21334
}

Semantic roles & 50–950 ramp

primary
#5F74F2
secondary
#EFE8BE
accent
#C204E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F74F2

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

Preview Lab → · Contrast checker → · Palette generator →

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