#5F7BF1#5F7BF1

#5F7BF1 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.2% C 0.179 H 270.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5F7BF1
RGBrgb(95, 123, 241)
HSLhsl(228, 84%, 66%)
HSVhsv(228, 61%, 95%)
CMYKcmyk(60.6%, 49%, 0%, 5.5%)
CIE-LABlab(55.02, 25.28, -62.55)
CIE-LCHlch(55.02, 67.47, 292.01°)
OKLaboklab(62.16% 0.0013 -0.179)
OKLCHoklch(62.16% 0.179 270.4)
XYZxyz(27.6741, 22.9474, 86.1730)
Luminance0.2295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BF1 #F1D55F
analogous
#5FC4F1 #5F7BF1 #8C5FF1
triadic
#5F7BF1 #F15F7B #7BF15F
tetradic
#5F7BF1 #F15FC4 #F1D55F #5FF18C
square
#5F7BF1 #F15FC4 #F1D55F #5FF18C
split-complementary
#5F7BF1 #F18C5F #C4F15F
monochromatic
#1134C4 #274DEC #5F7BF1 #97A9F6 #D0D8FB

Accessibility & contrast

On white

3.76
#5F7BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#5F7BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BF1
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BF1#FFFFFF#000000##000000
##5F7BF11.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8AF5
Deuteranopia (green-blind)
#1D7EEF
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7bf1;
/* rgb */ color: rgb(95, 123, 241);
/* oklch */ color: oklch(62.2% 0.179 270.4);
Tailwind
colors: {
  custom: {
    50: '#99a0f6',
    500: '#5f7bf1',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bf1;
$custom-light: #99a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bf1",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 228.493,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62162,
    "c": 0.17903,
    "h": 270.4
  },
  "luminance": 0.2295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F7BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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