#5F79F1#5F79F1

#5F79F1 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.8% C 0.181 H 271.0°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5F79F1
RGBrgb(95, 121, 241)
HSLhsl(229, 84%, 66%)
HSVhsv(229, 61%, 95%)
CMYKcmyk(60.6%, 49.8%, 0%, 5.5%)
CIE-LABlab(54.51, 26.50, -63.37)
CIE-LCHlch(54.51, 68.69, 292.69°)
OKLaboklab(61.78% 0.0032 -0.1815)
OKLCHoklch(61.78% 0.182 271)
XYZxyz(27.4286, 22.4562, 86.0911)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F79F1 #F1D75F
analogous
#5FC2F1 #5F79F1 #8E5FF1
triadic
#5F79F1 #F15F79 #79F15F
tetradic
#5F79F1 #F15FC2 #F1D75F #5FF18E
square
#5F79F1 #F15FC2 #F1D75F #5FF18E
split-complementary
#5F79F1 #F18E5F #C2F15F
monochromatic
#1131C4 #274AEC #5F79F1 #97A8F6 #D0D7FB

Accessibility & contrast

On white

3.82
#5F79F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#5F79F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F79F1
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F79F1#FFFFFF#000000##000000
##5F79F11.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3789F5
Deuteranopia (green-blind)
#127CEF
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f79f1;
/* rgb */ color: rgb(95, 121, 241);
/* oklch */ color: oklch(61.8% 0.181 271.0);
Tailwind
colors: {
  custom: {
    50: '#999ff6',
    500: '#5f79f1',
    950: '#000000',
  },
}
SCSS
$custom: #5f79f1;
$custom-light: #999ff6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f79f1",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 241
  },
  "hsl": {
    "h": 229.315,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61776,
    "c": 0.1815,
    "h": 271
  },
  "luminance": 0.22459
}

Semantic roles & 50–950 ramp

primary
#5F79F1
secondary
#EEE5BE
accent
#B905E0
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F79F1

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

Preview Lab → · Contrast checker → · Palette generator →

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