#5F7DF1#5F7DF1

#5F7DF1 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.6% C 0.177 H 269.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5F7DF1
RGBrgb(95, 125, 241)
HSLhsl(228, 84%, 66%)
HSVhsv(228, 61%, 95%)
CMYKcmyk(60.6%, 48.1%, 0%, 5.5%)
CIE-LABlab(55.53, 24.07, -61.73)
CIE-LCHlch(55.53, 66.25, 291.30°)
OKLaboklab(62.55% -0.0007 -0.1766)
OKLCHoklch(62.55% 0.177 269.8)
XYZxyz(27.9248, 23.4487, 86.2565)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7DF1 #F1D35F
analogous
#5FC6F1 #5F7DF1 #8A5FF1
triadic
#5F7DF1 #F15F7D #7DF15F
tetradic
#5F7DF1 #F15FC6 #F1D35F #5FF18A
square
#5F7DF1 #F15FC6 #F1D35F #5FF18A
split-complementary
#5F7DF1 #F18A5F #C6F15F
monochromatic
#1136C4 #274FEC #5F7DF1 #97ABF6 #D0D8FB

Accessibility & contrast

On white

3.69
#5F7DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5F7DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7DF1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7DF1#FFFFFF#000000##000000
##5F7DF11.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#418CF5
Deuteranopia (green-blind)
#247FEF
Tritanopia (blue-blind)
#0098AB
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7df1;
/* rgb */ color: rgb(95, 125, 241);
/* oklch */ color: oklch(62.6% 0.177 269.8);
Tailwind
colors: {
  custom: {
    50: '#99a2f6',
    500: '#5f7df1',
    950: '#000000',
  },
}
SCSS
$custom: #5f7df1;
$custom-light: #99a2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7df1",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 241
  },
  "hsl": {
    "h": 227.671,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62552,
    "c": 0.17658,
    "h": 269.8
  },
  "luminance": 0.23451
}

Semantic roles & 50–950 ramp

primary
#5F7DF1
secondary
#EEE4BE
accent
#B305E0
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5F7DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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