#5F7CF1#5F7CF1

#5F7CF1 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.4% C 0.178 H 270.1°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5F7CF1
RGBrgb(95, 124, 241)
HSLhsl(228, 84%, 66%)
HSVhsv(228, 61%, 95%)
CMYKcmyk(60.6%, 48.5%, 0%, 5.5%)
CIE-LABlab(55.27, 24.68, -62.14)
CIE-LCHlch(55.27, 66.86, 291.66°)
OKLaboklab(62.36% 0.0003 -0.1778)
OKLCHoklch(62.36% 0.178 270.1)
XYZxyz(27.7988, 23.1967, 86.2145)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7CF1 #F1D45F
analogous
#5FC5F1 #5F7CF1 #8B5FF1
triadic
#5F7CF1 #F15F7C #7CF15F
tetradic
#5F7CF1 #F15FC5 #F1D45F #5FF18B
square
#5F7CF1 #F15FC5 #F1D45F #5FF18B
split-complementary
#5F7CF1 #F18B5F #C5F15F
monochromatic
#1135C4 #274EEC #5F7CF1 #97AAF6 #D0D8FB

Accessibility & contrast

On white

3.72
#5F7CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5F7CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7CF1
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7CF1#FFFFFF#000000##000000
##5F7CF11.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8BF5
Deuteranopia (green-blind)
#217EEF
Tritanopia (blue-blind)
#0097AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7cf1;
/* rgb */ color: rgb(95, 124, 241);
/* oklch */ color: oklch(62.4% 0.178 270.1);
Tailwind
colors: {
  custom: {
    50: '#99a1f6',
    500: '#5f7cf1',
    950: '#000000',
  },
}
SCSS
$custom: #5f7cf1;
$custom-light: #99a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7cf1",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 241
  },
  "hsl": {
    "h": 228.082,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62357,
    "c": 0.1778,
    "h": 270.1
  },
  "luminance": 0.23199
}

Semantic roles & 50–950 ramp

primary
#5F7CF1
secondary
#EEE4BE
accent
#B505E0
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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