#5F79E1#5F79E1

#5F79E1 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.7% C 0.160 H 270.5°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F79E1
RGBrgb(95, 121, 225)
HSLhsl(228, 68%, 63%)
HSVhsv(228, 58%, 88%)
CMYKcmyk(57.8%, 46.2%, 0%, 11.8%)
CIE-LABlab(53.54, 21.24, -55.99)
CIE-LCHlch(53.54, 59.88, 290.77°)
OKLaboklab(60.73% 0.0013 -0.1598)
OKLCHoklch(60.73% 0.16 270.5)
XYZxyz(25.1428, 21.5419, 74.0526)
Luminance0.2154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F79E1 #E1C75F
analogous
#5FBAE1 #5F79E1 #865FE1
triadic
#5F79E1 #E15F79 #79E15F
tetradic
#5F79E1 #E15FBA #E1C75F #5FE186
square
#5F79E1 #E15FBA #E1C75F #5FE186
split-complementary
#5F79E1 #E1865F #BAE15F
monochromatic
#1F3AA6 #2B4ED7 #5F79E1 #93A4EB #C6CFF4

Accessibility & contrast

On white

3.96
#5F79E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5F79E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F79E1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F79E1#FFFFFF#000000##000000
##5F79E11.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4886E5
Deuteranopia (green-blind)
#347ADF
Tritanopia (blue-blind)
#0090A2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f79e1;
/* rgb */ color: rgb(95, 121, 225);
/* oklch */ color: oklch(60.7% 0.160 270.5);
Tailwind
colors: {
  custom: {
    50: '#969feb',
    500: '#5f79e1',
    950: '#000000',
  },
}
SCSS
$custom: #5f79e1;
$custom-light: #969feb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f79e1",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 225
  },
  "hsl": {
    "h": 228,
    "s": 68.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60727,
    "c": 0.15977,
    "h": 270.5
  },
  "luminance": 0.21544
}

Semantic roles & 50–950 ramp

primary
#5F79E1
secondary
#E5DCB6
accent
#AB15D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F79E1

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

Preview Lab → · Contrast checker → · Palette generator →

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